redmine 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3999fdc3318e34d33a3dc6663d733e4d2b478ea
4
- data.tar.gz: 4009cd1d9f2a1c40df5f32ea9df33fc2a11172a7
3
+ metadata.gz: edc97a9ce86f0a08964a42521dadf03b15953410
4
+ data.tar.gz: 1f17963401e1a4aad946183fa42011fa7dad7ad2
5
5
  SHA512:
6
- metadata.gz: 6323e87ca72a63b0eee0eba4f6a214ff52d49564b3de9300989c3c24eeedfa8b1302fe0d206d820abb1d825f5bac7db63ab30cc30947310eee51e90814274526
7
- data.tar.gz: 41fc8d4c611f102ac14f5c3ae9dcbd89bf66224637eea5ffbabddff764fbf86e655009a18339c4a54e63f27f660c618ddfc33190679b4d0ca7c7ee0f1d71425e
6
+ metadata.gz: 41f30b470622268e21a50ae057c6fcd8e26ca2240606c7a6c13579ce83b04521b74348e9e1077b1722e57847f153966e46fc36aa2c2ee96d407977fe67d0478f
7
+ data.tar.gz: a97cebf8acbd6594ea7c11bb0643be888f0327bd1ee2826d1755c060964f2c19cf8ed897c3b36fcfa79f40dddfa94d15e97a5267ef71cefa5613971f08ecaa7c
@@ -0,0 +1,55 @@
1
+ # Redmine
2
+
3
+ ## Install
4
+
5
+ In terminal
6
+
7
+ ```
8
+ gem install redmine
9
+ ```
10
+
11
+ If you wish to bundle, you must add the following line to your Gemfile.
12
+
13
+ ```
14
+ gem 'redmine'
15
+ ```
16
+
17
+ ## Quick start
18
+ ```
19
+ Redmine.configure do |config|
20
+ config.api_key = <:api_key>
21
+ config.site = <:site>
22
+
23
+ # if you need, you can define default values.
24
+ config.resources[:issue] = {
25
+ project_id: 1,
26
+ tracker_id: 1,
27
+ ...
28
+ }
29
+ end
30
+
31
+ issue = Redmine::Issue.find(1)
32
+ issue.project_id = 4
33
+ issue.save
34
+
35
+ Redmine::TimeEntry.create(
36
+ issue_id: 1,
37
+ hours: 4.3,
38
+ comments: "Hello world!"
39
+ )
40
+
41
+ ```
42
+
43
+ ## SSL options
44
+
45
+
46
+ ```
47
+ Redmine::Base.ssl_options = {
48
+ :verify_mode => OpenSSL::SSL::VERIFY_PEER
49
+ }
50
+ ```
51
+ [Here](http://api.rubyonrails.org/v3.2.1/classes/ActiveResource/Base.html) is more information.
52
+
53
+ ## Git hook
54
+
55
+ [Here](https://gist.github.com/topray/526dd9d131bb6f3e3281) is commit-msg gist for git hook.
@@ -24,5 +24,13 @@ module Redmine
24
24
  def encode(options={})
25
25
  send("to_#{self.class.format.extension}", options)
26
26
  end
27
+
28
+ private
29
+
30
+ def self.instantiate_collection(collection, original_params = {}, prefix_options = {})
31
+ collection = collection[self.collection_name] if collection.is_a? Hash and collection.has_key? self.collection_name
32
+
33
+ super(collection, original_params, prefix_options)
34
+ end
27
35
  end
28
36
  end
@@ -1,5 +1,5 @@
1
1
  module Redmine
2
- VERSION = '0.1.3' unless defined?(self::VERSION)
2
+ VERSION = '0.1.4' unless defined?(self::VERSION)
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - topray
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-20 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
@@ -37,6 +37,7 @@ extensions: []
37
37
  extra_rdoc_files: []
38
38
  files:
39
39
  - ".gitignore"
40
+ - README.md
40
41
  - Rakefile
41
42
  - lib/redmine.rb
42
43
  - lib/redmine/base.rb