rodzilla 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGE5NzhhNGZkZDIyZWIwNWQxNTQ5MzI5YjRlYjliZjk3NDRkOWMwNw==
4
+ N2RmMDE0NzAwYmEyY2RhMDQyMzliMTU2ZGFjYTdlMjc1MDhhZWEzMA==
5
5
  data.tar.gz: !binary |-
6
- NDJiZjc4MDI0YjE3M2E3MzQ3ZTU4ZWFjOTc2ZmY4MGM3MDgxZmEzNw==
6
+ ZGM4YWE5ZjQ3ZmMyOTFhZmI2Y2U0YzgzNmRmMTNjZGNmYjEyNjM4Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTU4YzIyNjI0NDk4OTdkZGQ4ZjY4YjlkNzIwNWRmYzRhZDUzY2VlNmMyNmY4
10
- MmJlMGVlMGIyMTAzZTA5ZWY5ZTk4MDIxYTg1ZDRkNTcxOTZjOWY3Mzc0MTU0
11
- MjJhNzNkN2Q5ZjA0MDJiMGNkMzdkNmM5YjVhZjg1MDA2OWE0NDc=
9
+ YWMwNjQ3NDIzOGNjNTg2MTkxNzE4NjRlY2YxYTc1ZTYzMGU4ZmVmMzViZDBl
10
+ NTlkYzMyZTY5ODU0OTZjM2I0NDhjZjRmMzRjM2VmZDEwZmEwYjBiYTNmYzcz
11
+ ZmQwMTMyYjBjY2EzOGYzMDQ5M2FiMjc1YmRlYzAyMDhmZjI0NTk=
12
12
  data.tar.gz: !binary |-
13
- N2RhOGMyNmE2NjdkYWVlYzMzNDM5NDY0NGJjNDU0YWUxZjRjZWIxNGQ1ZDIx
14
- ZmI2ZGZlYzUwNDY2Nzc0YTVkMzJmMzE1YWRlNGJiZDExNWMxZTY5YTI0OTAy
15
- NTFkNDBiMmI1YmY2NDA3NTU2MzBiODhjN2U0ODFhZmJlNjc2N2I=
13
+ MTJkYWUwZjQ4MDZkZDRjZjNjZjYwYTkwZTlmYWQ4ZDUzNjdhM2VhNDE0MjVi
14
+ MDgyMjZhZmRlY2E5MmZlNjUwOTQyODMxYzZlMjdmZWE5MWE4NmY0NzdjZjE5
15
+ YTAwYzQxZWY1OWRjZmE5ODg2NTIzYWNjN2I0Y2RiYTU5YjcwZjY=
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- Obp"��3p��
1
+ Qv�f_�I$�Y�k�j߬@!�p֭GȜ4���J:<��N�zV�}y���^P-q��31���*g��ݦ���C�&�
2
+ �?{�:@�ҝz��RA�V�M�ڊ���ȯSS�Pɟ�������eK{�Pd�5���� 6㡵zm��-���SؾH�\��[O�jd;@@wG�����9�ԭU�8;��ޅ=��J����
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ script: rake $TASK
6
+ env:
7
+ - TASK=test
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/jwaterfaucett/rodzilla.png)](https://travis-ci.org/jwaterfaucett/rodzilla)
2
+
1
3
  # Rodzilla
2
4
 
3
5
  This Ruby Gem tries its best to implement: [http://www.bugzilla.org/docs/tip/en/html/api/index.html](The Bugzilla API)
@@ -18,6 +18,10 @@ module Rodzilla
18
18
  }
19
19
  setup_request
20
20
  end
21
+
22
+ def send_raw_request(http_method, url, options={})
23
+ http_response = self.class.send(http_method, url, options )
24
+ end
21
25
 
22
26
  def send_request!(rpc_method, params={}, http_method=:post)
23
27
  setup_request
@@ -91,4 +95,4 @@ module Rodzilla
91
95
  end
92
96
 
93
97
  end
94
- end
98
+ end
@@ -16,6 +16,12 @@ module Rodzilla
16
16
  service.send_request!( get_resource_rpc_method_name(rpc_method_name), params, http_method)
17
17
  end
18
18
 
19
+ # Makes a GET request to the service endpoint and checks if the
20
+ # return status is 200
21
+ def raw_http_request(http_method, url, options={})
22
+ @service.send_raw_request(http_method, url, options)
23
+ end
24
+
19
25
  protected
20
26
 
21
27
  def get_resource_rpc_method_name(rpc_method_name)
@@ -2,7 +2,7 @@ module Rodzilla
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  STRING = [MAJOR,MINOR,PATCH].join('.')
8
8
  end
data/rodzilla.gemspec CHANGED
@@ -13,8 +13,10 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/jwaterfaucett/rodzilla"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.signing_key = '/Users/john/.gemcert/gem-private_key.pem'
17
- spec.cert_chain = ['gem-public_cert.pem']
16
+ unless ENV['TRAVIS']
17
+ spec.signing_key = '/Users/john/.gemcert/gem-private_key.pem'
18
+ spec.cert_chain = ['gem-public_cert.pem']
19
+ end
18
20
 
19
21
  spec.files = `git ls-files`.split($/)
20
22
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -1,6 +1,24 @@
1
1
  require 'test_helper'
2
2
 
3
3
  describe Rodzilla::Resource::Bug do
4
+ before do
5
+ @bug = new_resource('Bug')
6
+ end
4
7
 
8
+ describe "api methods" do
9
+
10
+ it { @bug.must_respond_to('fields') }
11
+ it { @bug.must_respond_to('search') }
12
+ it { @bug.must_respond_to('attachments') }
13
+ it { @bug.must_respond_to('get') }
14
+ it { @bug.must_respond_to('get_bugs') }
15
+ it { @bug.must_respond_to('comments') }
16
+ it { @bug.must_respond_to('create!') }
17
+ it { @bug.must_respond_to('create') }
18
+ it { @bug.must_respond_to('add_attachment!') }
19
+ it { @bug.must_respond_to('add_attachment') }
20
+ it { @bug.must_respond_to('update') }
21
+
22
+ end
5
23
 
6
24
  end
@@ -0,0 +1,17 @@
1
+ require 'test_helper'
2
+
3
+ describe Rodzilla::Resource::Bugzilla do
4
+ before do
5
+ @bugzilla = new_resource('Bugzilla')
6
+ end
7
+
8
+ describe "api methods" do
9
+
10
+ it { @bugzilla.must_respond_to('version') }
11
+ it { @bugzilla.must_respond_to('time') }
12
+ it { @bugzilla.must_respond_to('timezone') }
13
+ it { @bugzilla.must_respond_to('extensions') }
14
+
15
+ end
16
+
17
+ end
@@ -0,0 +1,17 @@
1
+ require 'test_helper'
2
+
3
+ describe Rodzilla::Resource::Product do
4
+ before do
5
+ @product = new_resource('Product')
6
+ end
7
+
8
+ describe "api methods" do
9
+
10
+ it { @product.must_respond_to('get_selectable_products') }
11
+ it { @product.must_respond_to('get_enterable_products') }
12
+ it { @product.must_respond_to('get_accessible_products') }
13
+ it { @product.must_respond_to('get_products') }
14
+
15
+ end
16
+
17
+ end
data.tar.gz.sig CHANGED
@@ -1 +1,5 @@
1
- ��k�h����q��Fa�H��5x^8z�g�ٚ���p�Z㛣&u�Ge�?�1cDKLJ?@mry2Q �D��__��㔡W�b��J=�2�����U�&���2�87T� h����H���CM@h�������� �2���HN\�2��aY���.zd���I2��z~�������’#%�I�����?jݞ���l|=V����U�W�±D~!5��&TM��L[ʳB� �%{ۣ�'�;ޅ����Y5
1
+
2
+ �Dlt���?�� �gV���v������&c���BC7�O� {��Vc�^�
3
+ ���(����i
4
+ `Xö�\dY��gY�m�L� Ur����Q��� Z�X a����Kq?/��cQ��@3��~]�W
5
+ M����8)�k��۠K?c����yX��}� �Cb��p���-������}|At&�T0�o(9DŃQQF�嫺��~J���WR��y
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rodzilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Faucett
@@ -38,7 +38,7 @@ cert_chain:
38
38
  alZXVFhBWFBFN1FUSWp1NlcrRU12enNqbVNICndEZDdGSlE4bkdEaFlxaUtI
39
39
  L01DYXE3SEQ3L0ptZ0ZZalpOUENzeTBsVGtCdXIrVkMxbnN1ZFE9Ci0tLS0t
40
40
  RU5EIENFUlRJRklDQVRFLS0tLS0K
41
- date: 2013-10-23 00:00:00.000000000 Z
41
+ date: 2013-11-08 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: httparty
@@ -77,6 +77,7 @@ extra_rdoc_files: []
77
77
  files:
78
78
  - .gitignore
79
79
  - .ruby-gemset
80
+ - .travis.yml
80
81
  - Gemfile
81
82
  - LICENSE.txt
82
83
  - README.md
@@ -107,6 +108,8 @@ files:
107
108
  - test/rodzilla/json_rpc/service_test.rb
108
109
  - test/rodzilla/resource/base_test.rb
109
110
  - test/rodzilla/resource/bug_test.rb
111
+ - test/rodzilla/resource/bugzilla_test.rb
112
+ - test/rodzilla/resource/product_test.rb
110
113
  - test/rodzilla/resource/util_test.rb
111
114
  - test/rodzilla/web_service_test.rb
112
115
  - test/test_helper.rb
@@ -143,6 +146,8 @@ test_files:
143
146
  - test/rodzilla/json_rpc/service_test.rb
144
147
  - test/rodzilla/resource/base_test.rb
145
148
  - test/rodzilla/resource/bug_test.rb
149
+ - test/rodzilla/resource/bugzilla_test.rb
150
+ - test/rodzilla/resource/product_test.rb
146
151
  - test/rodzilla/resource/util_test.rb
147
152
  - test/rodzilla/web_service_test.rb
148
153
  - test/test_helper.rb
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ��Gg��� ����t�;�颧��Y��?��6}DGpp�I��ߎd�|�/��Xׇm
2
- ��0���
1
+ %�b���D��$b&L���óZ�Q��1�� ��L �� quwlebkM���ܒr��Z��ow���KbR��u҄?ݙ�|qs������ؚy:9�(xpq�:�