This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = Raphael Sofaer | |
| email = [email protected] | |
| [github] | |
| user = rsofaer | |
| token = <REDACTED> | |
| [branch] | |
| autosetuprebase = always | |
| autosetupmerge = true | |
| [color] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'mongo_mapper' | |
| MongoMapper.database = 'testing' | |
| class SafeDoc | |
| include MongoMapper::Document | |
| key :name | |
| safe | |
| end | |
| puts "With a 'safe' document class:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'json' | |
| json = JSON.parse(File.open("github_issues.json").read) | |
| issues = json["issues"] | |
| require 'redmine_client' | |
| RedmineClient::Base.configure do | |
| self.site = 'http://bugs.joindiaspora.com' | |
| self.user = 'ilya' |
NewerOlder