agra_api 0.1.0 → 0.1.1

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: 0745e090bc629c9347b35fd8ec0ce7528b0395fd
4
- data.tar.gz: 8009926a5a599a4c2e1577927c2187f4d2fcdec7
3
+ metadata.gz: 9ac0c26056912923bf02974a8ece99bf0a31c8b6
4
+ data.tar.gz: 9df5c4852808a46a609efb075a213ea4a0c17c73
5
5
  SHA512:
6
- metadata.gz: 9c58406030bb2a12613dbec0f9173250d322f50326a098dd4e19407392176d73db8abec264f64d55d517e73732e46a07983d4ed3ad3d916a969a0e31d51ee7f0
7
- data.tar.gz: d1690264adbeddceb480e24f9833773ff3abceab29a572fc39ae2cf42e72f7e6d78347cfda6e592acf494578764c708d99e07e22355ab5e5119b54a00aa9d178
6
+ metadata.gz: e888751771de335d12337183e89cecc0d8fe805b54cf4a732928b3a922101abf084b6b3000d11eae8b6e54bca83291914693003497d09a749fd4fcaa1ae02008
7
+ data.tar.gz: b23dd978866e39a0e14d2ba9af56d32acaa9b841f35442250261fe80ef8c65588d0eb3d884638513ce904e4f8c6533b39ae3f93c9d7eb1ab56d621c8914e62b8
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.0.0-p247
1
+ 2.0.0-p645
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source "http://rubygems.org"
2
- gemspec
2
+ gem 'vertebrae'
3
3
 
4
4
  # Add dependencies to develop your gem here.
5
5
  # Include everything needed to run rake, tests, features, etc.
@@ -7,7 +7,7 @@ group :development do
7
7
  gem "rspec"
8
8
  gem 'webmock'
9
9
  gem 'pry'
10
- gem 'pry-debugger'
10
+ gem 'pry-byebug'
11
11
  gem "bundler"
12
- gem "jeweler", "~> 1.8.4"
12
+ gem "jeweler"
13
13
  end
data/Gemfile.lock CHANGED
@@ -1,99 +1,96 @@
1
- PATH
2
- remote: .
3
- specs:
4
- agra_api (0.1.0)
5
- agra_api
6
- vertebrae
7
-
8
1
  GEM
9
2
  remote: http://rubygems.org/
10
3
  specs:
11
- activesupport (4.0.0)
12
- i18n (~> 0.6, >= 0.6.4)
13
- minitest (~> 4.2)
14
- multi_json (~> 1.3)
15
- thread_safe (~> 0.1)
16
- tzinfo (~> 0.3.37)
17
- addressable (2.3.5)
18
- atomic (1.1.14)
4
+ activesupport (4.2.4)
5
+ i18n (~> 0.7)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
+ thread_safe (~> 0.3, >= 0.3.4)
9
+ tzinfo (~> 1.1)
10
+ addressable (2.3.8)
19
11
  builder (3.2.2)
12
+ byebug (2.7.0)
13
+ columnize (~> 0.3)
14
+ debugger-linecache (~> 1.2)
20
15
  coderay (1.0.9)
21
- columnize (0.3.6)
16
+ columnize (0.9.0)
22
17
  crack (0.4.1)
23
18
  safe_yaml (~> 0.9.0)
24
- debugger (1.6.2)
25
- columnize (>= 0.3.1)
26
- debugger-linecache (~> 1.2.0)
27
- debugger-ruby_core_source (~> 1.2.3)
28
19
  debugger-linecache (1.2.0)
29
- debugger-ruby_core_source (1.2.3)
30
- diff-lcs (1.2.4)
31
- faraday (0.8.8)
32
- multipart-post (~> 1.2.0)
33
- faraday_middleware (0.9.0)
34
- faraday (>= 0.7.4, < 0.9)
35
- git (1.2.6)
36
- github_api (0.10.1)
37
- addressable
38
- faraday (~> 0.8.1)
39
- hashie (>= 1.2)
40
- multi_json (~> 1.4)
41
- nokogiri (~> 1.5.2)
20
+ descendants_tracker (0.0.4)
21
+ thread_safe (~> 0.3, >= 0.3.1)
22
+ diff-lcs (1.2.5)
23
+ faraday (0.9.1)
24
+ multipart-post (>= 1.2, < 3)
25
+ faraday_middleware (0.10.0)
26
+ faraday (>= 0.7.4, < 0.10)
27
+ git (1.2.9.1)
28
+ github_api (0.12.4)
29
+ addressable (~> 2.3)
30
+ descendants_tracker (~> 0.0.4)
31
+ faraday (~> 0.8, < 0.10)
32
+ hashie (>= 3.4)
33
+ multi_json (>= 1.7.5, < 2.0)
34
+ nokogiri (~> 1.6.6)
42
35
  oauth2
43
- hashie (2.0.5)
44
- highline (1.6.20)
45
- httpauth (0.2.0)
46
- i18n (0.6.5)
47
- jeweler (1.8.8)
36
+ hashie (3.4.2)
37
+ highline (1.7.7)
38
+ i18n (0.7.0)
39
+ jeweler (2.0.1)
48
40
  builder
49
- bundler (~> 1.0)
41
+ bundler (>= 1.0)
50
42
  git (>= 1.2.5)
51
- github_api (= 0.10.1)
43
+ github_api
52
44
  highline (>= 1.6.15)
53
- nokogiri (= 1.5.10)
45
+ nokogiri (>= 1.5.10)
54
46
  rake
55
47
  rdoc
56
- json (1.8.1)
57
- jwt (0.1.8)
58
- multi_json (>= 1.5)
48
+ json (1.8.3)
49
+ jwt (1.5.1)
59
50
  method_source (0.8.2)
60
- minitest (4.7.5)
61
- multi_json (1.8.2)
51
+ mini_portile (0.6.2)
52
+ minitest (5.8.1)
53
+ multi_json (1.11.2)
62
54
  multi_xml (0.5.5)
63
- multipart-post (1.2.0)
64
- nokogiri (1.5.10)
65
- oauth2 (0.9.2)
66
- faraday (~> 0.8)
67
- httpauth (~> 0.2)
68
- jwt (~> 0.1.4)
69
- multi_json (~> 1.0)
55
+ multipart-post (2.0.0)
56
+ nokogiri (1.6.6.2)
57
+ mini_portile (~> 0.6.0)
58
+ oauth2 (1.0.0)
59
+ faraday (>= 0.8, < 0.10)
60
+ jwt (~> 1.0)
61
+ multi_json (~> 1.3)
70
62
  multi_xml (~> 0.5)
71
63
  rack (~> 1.2)
72
64
  pry (0.9.12.2)
73
65
  coderay (~> 1.0.5)
74
66
  method_source (~> 0.8)
75
67
  slop (~> 3.4)
76
- pry-debugger (0.2.2)
77
- debugger (~> 1.3)
78
- pry (~> 0.9.10)
79
- rack (1.5.2)
80
- rake (10.1.0)
81
- rdoc (4.0.1)
68
+ pry-byebug (1.3.2)
69
+ byebug (~> 2.7)
70
+ pry (~> 0.9.12)
71
+ rack (1.6.4)
72
+ rake (10.4.2)
73
+ rdoc (4.2.0)
82
74
  json (~> 1.4)
83
- rspec (2.14.1)
84
- rspec-core (~> 2.14.0)
85
- rspec-expectations (~> 2.14.0)
86
- rspec-mocks (~> 2.14.0)
87
- rspec-core (2.14.6)
88
- rspec-expectations (2.14.3)
89
- diff-lcs (>= 1.1.3, < 2.0)
90
- rspec-mocks (2.14.4)
75
+ rspec (3.3.0)
76
+ rspec-core (~> 3.3.0)
77
+ rspec-expectations (~> 3.3.0)
78
+ rspec-mocks (~> 3.3.0)
79
+ rspec-core (3.3.2)
80
+ rspec-support (~> 3.3.0)
81
+ rspec-expectations (3.3.1)
82
+ diff-lcs (>= 1.2.0, < 2.0)
83
+ rspec-support (~> 3.3.0)
84
+ rspec-mocks (3.3.2)
85
+ diff-lcs (>= 1.2.0, < 2.0)
86
+ rspec-support (~> 3.3.0)
87
+ rspec-support (3.3.0)
91
88
  safe_yaml (0.9.7)
92
89
  slop (3.4.6)
93
- thread_safe (0.1.3)
94
- atomic
95
- tzinfo (0.3.38)
96
- vertebrae (0.2.2)
90
+ thread_safe (0.3.5)
91
+ tzinfo (1.2.2)
92
+ thread_safe (~> 0.1)
93
+ vertebrae (0.2.11)
97
94
  activesupport
98
95
  faraday
99
96
  faraday_middleware
@@ -106,10 +103,13 @@ PLATFORMS
106
103
  ruby
107
104
 
108
105
  DEPENDENCIES
109
- agra_api!
110
106
  bundler
111
- jeweler (~> 1.8.4)
107
+ jeweler
112
108
  pry
113
- pry-debugger
109
+ pry-byebug
114
110
  rspec
111
+ vertebrae
115
112
  webmock
113
+
114
+ BUNDLED WITH
115
+ 1.10.6
data/Rakefile CHANGED
@@ -25,7 +25,6 @@ Jeweler::Tasks.new do |gem|
25
25
  gem.email = "nathan@controlshiftlabs.com"
26
26
  gem.authors = ["Nathan Woodhull"]
27
27
  # dependencies defined in Gemfile
28
- gem.add_dependency 'vertebrae'
29
28
  end
30
29
  Jeweler::RubygemsDotOrgTasks.new
31
30
 
data/agra_api.gemspec CHANGED
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: agra_api 0.1.1 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "agra_api"
8
- s.version = "0.1.0"
9
+ s.version = "0.1.1"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Nathan Woodhull"]
12
- s.date = "2013-10-27"
14
+ s.date = "2015-10-02"
13
15
  s.description = "Agra is a distributed petitions platform, this is a gem for talking to it's API"
14
16
  s.email = "nathan@controlshiftlabs.com"
15
17
  s.extra_rdoc_files = [
@@ -34,101 +36,43 @@ Gem::Specification.new do |s|
34
36
  "lib/agra_api/version.rb",
35
37
  "spec/agra_api_spec.rb",
36
38
  "spec/client_spec.rb",
37
- "spec/fixtures/organisation",
39
+ "spec/fixtures/organisation.json",
38
40
  "spec/organisation_spec.rb",
39
41
  "spec/spec_helper.rb"
40
42
  ]
41
43
  s.homepage = "http://github.com/controlshift/agra_api"
42
44
  s.licenses = ["MIT"]
43
- s.require_paths = ["lib"]
44
- s.rubygems_version = "2.0.7"
45
+ s.rubygems_version = "2.4.8"
45
46
  s.summary = "A very basic agra client gem"
46
47
 
47
48
  if s.respond_to? :specification_version then
48
49
  s.specification_version = 4
49
50
 
50
51
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<agra_api>, [">= 0"])
52
- s.add_development_dependency(%q<rspec>, [">= 0"])
53
- s.add_development_dependency(%q<webmock>, [">= 0"])
54
- s.add_development_dependency(%q<pry>, [">= 0"])
55
- s.add_development_dependency(%q<pry-debugger>, [">= 0"])
56
- s.add_development_dependency(%q<bundler>, [">= 0"])
57
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
58
- s.add_development_dependency(%q<rspec>, [">= 0"])
59
- s.add_development_dependency(%q<webmock>, [">= 0"])
60
- s.add_development_dependency(%q<pry>, [">= 0"])
61
- s.add_development_dependency(%q<pry-debugger>, [">= 0"])
62
- s.add_development_dependency(%q<bundler>, [">= 0"])
63
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
64
- s.add_development_dependency(%q<rspec>, [">= 0"])
65
- s.add_development_dependency(%q<webmock>, [">= 0"])
66
- s.add_development_dependency(%q<pry>, [">= 0"])
67
- s.add_development_dependency(%q<pry-debugger>, [">= 0"])
68
- s.add_development_dependency(%q<bundler>, [">= 0"])
69
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
52
+ s.add_runtime_dependency(%q<vertebrae>, [">= 0"])
70
53
  s.add_development_dependency(%q<rspec>, [">= 0"])
71
54
  s.add_development_dependency(%q<webmock>, [">= 0"])
72
55
  s.add_development_dependency(%q<pry>, [">= 0"])
73
- s.add_development_dependency(%q<pry-debugger>, [">= 0"])
56
+ s.add_development_dependency(%q<pry-byebug>, [">= 0"])
74
57
  s.add_development_dependency(%q<bundler>, [">= 0"])
75
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
76
- s.add_runtime_dependency(%q<vertebrae>, [">= 0"])
58
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
77
59
  else
78
- s.add_dependency(%q<agra_api>, [">= 0"])
79
- s.add_dependency(%q<rspec>, [">= 0"])
80
- s.add_dependency(%q<webmock>, [">= 0"])
81
- s.add_dependency(%q<pry>, [">= 0"])
82
- s.add_dependency(%q<pry-debugger>, [">= 0"])
83
- s.add_dependency(%q<bundler>, [">= 0"])
84
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
85
- s.add_dependency(%q<rspec>, [">= 0"])
86
- s.add_dependency(%q<webmock>, [">= 0"])
87
- s.add_dependency(%q<pry>, [">= 0"])
88
- s.add_dependency(%q<pry-debugger>, [">= 0"])
89
- s.add_dependency(%q<bundler>, [">= 0"])
90
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
91
- s.add_dependency(%q<rspec>, [">= 0"])
92
- s.add_dependency(%q<webmock>, [">= 0"])
93
- s.add_dependency(%q<pry>, [">= 0"])
94
- s.add_dependency(%q<pry-debugger>, [">= 0"])
95
- s.add_dependency(%q<bundler>, [">= 0"])
96
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
60
+ s.add_dependency(%q<vertebrae>, [">= 0"])
97
61
  s.add_dependency(%q<rspec>, [">= 0"])
98
62
  s.add_dependency(%q<webmock>, [">= 0"])
99
63
  s.add_dependency(%q<pry>, [">= 0"])
100
- s.add_dependency(%q<pry-debugger>, [">= 0"])
64
+ s.add_dependency(%q<pry-byebug>, [">= 0"])
101
65
  s.add_dependency(%q<bundler>, [">= 0"])
102
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
103
- s.add_dependency(%q<vertebrae>, [">= 0"])
66
+ s.add_dependency(%q<jeweler>, [">= 0"])
104
67
  end
105
68
  else
106
- s.add_dependency(%q<agra_api>, [">= 0"])
107
- s.add_dependency(%q<rspec>, [">= 0"])
108
- s.add_dependency(%q<webmock>, [">= 0"])
109
- s.add_dependency(%q<pry>, [">= 0"])
110
- s.add_dependency(%q<pry-debugger>, [">= 0"])
111
- s.add_dependency(%q<bundler>, [">= 0"])
112
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
113
- s.add_dependency(%q<rspec>, [">= 0"])
114
- s.add_dependency(%q<webmock>, [">= 0"])
115
- s.add_dependency(%q<pry>, [">= 0"])
116
- s.add_dependency(%q<pry-debugger>, [">= 0"])
117
- s.add_dependency(%q<bundler>, [">= 0"])
118
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
119
- s.add_dependency(%q<rspec>, [">= 0"])
120
- s.add_dependency(%q<webmock>, [">= 0"])
121
- s.add_dependency(%q<pry>, [">= 0"])
122
- s.add_dependency(%q<pry-debugger>, [">= 0"])
123
- s.add_dependency(%q<bundler>, [">= 0"])
124
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
69
+ s.add_dependency(%q<vertebrae>, [">= 0"])
125
70
  s.add_dependency(%q<rspec>, [">= 0"])
126
71
  s.add_dependency(%q<webmock>, [">= 0"])
127
72
  s.add_dependency(%q<pry>, [">= 0"])
128
- s.add_dependency(%q<pry-debugger>, [">= 0"])
73
+ s.add_dependency(%q<pry-byebug>, [">= 0"])
129
74
  s.add_dependency(%q<bundler>, [">= 0"])
130
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
131
- s.add_dependency(%q<vertebrae>, [">= 0"])
75
+ s.add_dependency(%q<jeweler>, [">= 0"])
132
76
  end
133
77
  end
134
78
 
@@ -2,9 +2,9 @@ module AgraApi
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
10
- end
10
+ end
@@ -2,10 +2,11 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe AgraApi do
4
4
  before(:each) do
5
- AgraApi::Client.stub(:setup_client)
5
+ allow(AgraApi::Client).to receive(:setup_client)
6
6
  end
7
- specify { subject.should respond_to :organisation }
8
- specify { subject.new.should be_a(AgraApi::Client)}
7
+
8
+ specify { expect(subject).to respond_to(:organisation) }
9
+ specify { expect(subject.new).to be_a(AgraApi::Client)}
9
10
  end
10
11
 
11
12
 
data/spec/client_spec.rb CHANGED
@@ -8,9 +8,9 @@ describe AgraApi::Client do
8
8
  context 'process_basic_auth' do
9
9
  let(:options) { { :basic_auth => 'login:password' } }
10
10
  let(:config) { subject.connection.configuration }
11
- specify { config.username.should eq 'login' }
12
- specify { config.password.should eq 'password' }
11
+ specify { expect(config.username).to eq 'login' }
12
+ specify { expect(config.password).to eq 'password' }
13
13
  end
14
14
 
15
15
  end
16
- end
16
+ end
@@ -0,0 +1,51 @@
1
+ {"admin_email": "info@controlshiftlabs.com", "blog_link": "", "campaigner_feedback_link": "", "contact_email": "info@controlshiftlabs.com", "created_at": "2013-04-15T13:31:49-04:00", "facebook_url": "", "google_analytics_tracking_id": "", "host": "localhost", "id": 1, "name": "Default Org", "parent_name": "", "parent_url": "", "placeholder_content_type": null, "placeholder_file_name": null, "placeholder_file_size": null, "placeholder_updated_at": null, "preferred_locale": "en", "sendgrid_password": null, "sendgrid_username": null, "settings": {
2
+ "show_petition_category_on_creation": "0",
3
+ "requires_user_confirmation_on_sign_up": "0",
4
+ "requires_location_for_campaign": "1",
5
+ "always_join_parent_org_when_sign_up": "0",
6
+ "hide_signatures_csv_download_link": "0",
7
+ "hide_phone_number_on_signature_form": "0",
8
+ "show_categories_as_dropdown": "0",
9
+ "list_petitions_under_map": "0",
10
+ "expose_broadcast_emails": "1",
11
+ "home_link_override": "",
12
+ "signature_disclaimer": "",
13
+ "new_account_disclaimer": "",
14
+ "join_label": "",
15
+ "country": "",
16
+ "google_maps_key": "",
17
+ "enable_facebook_login": "1",
18
+ "fb_app_id": "bar",
19
+ "fb_app_secret": "foo",
20
+ "notifiers": "actionkit",
21
+ "bsd_host": "",
22
+ "bsd_api_id": "",
23
+ "bsd_api_secret": "",
24
+ "salesforce_host": "",
25
+ "salesforce_consumer_key": "",
26
+ "salesforce_consumer_secret": "",
27
+ "salesforce_username": "",
28
+ "salesforce_security_token": "",
29
+ "action_kit_host": "foo.com",
30
+ "action_kit_username": "bar",
31
+ "action_kit_password": "foo",
32
+ "action_kit_country": "",
33
+ "action_kit_signature_page": "",
34
+ "action_kit_petition_page": "",
35
+ "long_name": "long name",
36
+ "phone_number_not_mandatory_on_registration": "0",
37
+ "action_kit_tag_id": [1, 4],
38
+ "action_kit_tag_ids": [
39
+ [1, 4]
40
+ ],
41
+ "preferred_language": "en",
42
+ "tijuana_host": "test",
43
+ "tijuana_username": "test",
44
+ "tijuana_password": "test",
45
+ "supported_languages": ["en"],
46
+ "signature_fields_override": "",
47
+ "purpose_host": "host",
48
+ "purpose_username": "usern",
49
+ "purpose_password": "pass",
50
+ "purpose_movement_id": "movement"
51
+ }, "slug": "gsanetwork", "time_zone": "Eastern Time (US & Canada)", "twitter_account_name": "", "updated_at": "2013-10-18T14:43:03-04:00", "user_feedback_link": "", "uservoice_widget_link": ""}
@@ -5,12 +5,12 @@ describe AgraApi::Organisation do
5
5
 
6
6
  describe 'configuration' do
7
7
  it 'should propagate the host' do
8
- subject.organisation.client.connection.configuration.host.should == 'test.com'
8
+ expect(subject.organisation.client.connection.configuration.host).to eq('test.com')
9
9
  end
10
10
  end
11
11
 
12
12
  describe 'find_by_host' do
13
- let(:body) { fixture('organisation') }
13
+ let(:body) { fixture('organisation.json') }
14
14
  let(:request_path) { '/api/organisations/?host=foo.com' }
15
15
 
16
16
  before(:each) do
@@ -23,7 +23,7 @@ describe AgraApi::Organisation do
23
23
  let(:organisation) { subject.organisation.find_by_host('foo.com') }
24
24
 
25
25
  it 'should find an organisation' do
26
- organisation.settings.action_kit_host.should == 'foo.com'
26
+ expect(organisation.settings.action_kit_host).to eq('foo.com')
27
27
  end
28
28
  end
29
29
 
@@ -31,7 +31,7 @@ describe AgraApi::Organisation do
31
31
  let(:status) { 500 }
32
32
 
33
33
  it 'should raise' do
34
- lambda { subject.organisation.find_by_host('foo.com') }.should raise_exception
34
+ expect { subject.organisation.find_by_host('foo.com') }.to raise_exception(StandardError)
35
35
  end
36
36
  end
37
37
  end
@@ -51,7 +51,7 @@ describe AgraApi::Organisation do
51
51
  let(:status) { 401 }
52
52
 
53
53
  it "should raise" do
54
- lambda { subject.organisation.find_by_host('foo.com') }.should raise_exception
54
+ expect { subject.organisation.find_by_host('foo.com') }.to raise_exception(StandardError)
55
55
  end
56
56
  end
57
57
  end
data/spec/spec_helper.rb CHANGED
@@ -12,8 +12,6 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
12
12
 
13
13
  RSpec.configure do |config|
14
14
  config.include WebMock::API
15
- config.color_enabled = true
16
-
17
15
 
18
16
  config.before(:each) do
19
17
  WebMock.reset!
@@ -37,12 +35,10 @@ def stub_agra_request(method, path)
37
35
  stub_request(method, "https://test.com" + prefix + path)
38
36
  end
39
37
 
40
-
41
-
42
38
  def fixture_path
43
39
  File.expand_path("../fixtures", __FILE__)
44
40
  end
45
41
 
46
42
  def fixture(file)
47
43
  File.new(File.join(fixture_path, '/', file))
48
- end
44
+ end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agra_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Woodhull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-27 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: agra_api
14
+ name: vertebrae
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - '>='
@@ -67,175 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry-debugger
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: bundler
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: jeweler
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ~>
102
- - !ruby/object:Gem::Version
103
- version: 1.8.4
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ~>
109
- - !ruby/object:Gem::Version
110
- version: 1.8.4
111
- - !ruby/object:Gem::Dependency
112
- name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - '>='
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: webmock
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: pry
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - '>='
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - '>='
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: pry-debugger
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '>='
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - '>='
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: bundler
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '>='
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: jeweler
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ~>
186
- - !ruby/object:Gem::Version
187
- version: 1.8.4
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ~>
193
- - !ruby/object:Gem::Version
194
- version: 1.8.4
195
- - !ruby/object:Gem::Dependency
196
- name: rspec
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - '>='
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - '>='
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
- - !ruby/object:Gem::Dependency
210
- name: webmock
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - '>='
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - '>='
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
- - !ruby/object:Gem::Dependency
224
- name: pry
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - '>='
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- type: :development
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - '>='
235
- - !ruby/object:Gem::Version
236
- version: '0'
237
- - !ruby/object:Gem::Dependency
238
- name: pry-debugger
70
+ name: pry-byebug
239
71
  requirement: !ruby/object:Gem::Requirement
240
72
  requirements:
241
73
  - - '>='
@@ -264,76 +96,6 @@ dependencies:
264
96
  version: '0'
265
97
  - !ruby/object:Gem::Dependency
266
98
  name: jeweler
267
- requirement: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - ~>
270
- - !ruby/object:Gem::Version
271
- version: 1.8.4
272
- type: :development
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - ~>
277
- - !ruby/object:Gem::Version
278
- version: 1.8.4
279
- - !ruby/object:Gem::Dependency
280
- name: rspec
281
- requirement: !ruby/object:Gem::Requirement
282
- requirements:
283
- - - '>='
284
- - !ruby/object:Gem::Version
285
- version: '0'
286
- type: :development
287
- prerelease: false
288
- version_requirements: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - '>='
291
- - !ruby/object:Gem::Version
292
- version: '0'
293
- - !ruby/object:Gem::Dependency
294
- name: webmock
295
- requirement: !ruby/object:Gem::Requirement
296
- requirements:
297
- - - '>='
298
- - !ruby/object:Gem::Version
299
- version: '0'
300
- type: :development
301
- prerelease: false
302
- version_requirements: !ruby/object:Gem::Requirement
303
- requirements:
304
- - - '>='
305
- - !ruby/object:Gem::Version
306
- version: '0'
307
- - !ruby/object:Gem::Dependency
308
- name: pry
309
- requirement: !ruby/object:Gem::Requirement
310
- requirements:
311
- - - '>='
312
- - !ruby/object:Gem::Version
313
- version: '0'
314
- type: :development
315
- prerelease: false
316
- version_requirements: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - '>='
319
- - !ruby/object:Gem::Version
320
- version: '0'
321
- - !ruby/object:Gem::Dependency
322
- name: pry-debugger
323
- requirement: !ruby/object:Gem::Requirement
324
- requirements:
325
- - - '>='
326
- - !ruby/object:Gem::Version
327
- version: '0'
328
- type: :development
329
- prerelease: false
330
- version_requirements: !ruby/object:Gem::Requirement
331
- requirements:
332
- - - '>='
333
- - !ruby/object:Gem::Version
334
- version: '0'
335
- - !ruby/object:Gem::Dependency
336
- name: bundler
337
99
  requirement: !ruby/object:Gem::Requirement
338
100
  requirements:
339
101
  - - '>='
@@ -346,34 +108,6 @@ dependencies:
346
108
  - - '>='
347
109
  - !ruby/object:Gem::Version
348
110
  version: '0'
349
- - !ruby/object:Gem::Dependency
350
- name: jeweler
351
- requirement: !ruby/object:Gem::Requirement
352
- requirements:
353
- - - ~>
354
- - !ruby/object:Gem::Version
355
- version: 1.8.4
356
- type: :development
357
- prerelease: false
358
- version_requirements: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - ~>
361
- - !ruby/object:Gem::Version
362
- version: 1.8.4
363
- - !ruby/object:Gem::Dependency
364
- name: vertebrae
365
- requirement: !ruby/object:Gem::Requirement
366
- requirements:
367
- - - '>='
368
- - !ruby/object:Gem::Version
369
- version: '0'
370
- type: :runtime
371
- prerelease: false
372
- version_requirements: !ruby/object:Gem::Requirement
373
- requirements:
374
- - - '>='
375
- - !ruby/object:Gem::Version
376
- version: '0'
377
111
  description: Agra is a distributed petitions platform, this is a gem for talking to
378
112
  it's API
379
113
  email: nathan@controlshiftlabs.com
@@ -400,7 +134,7 @@ files:
400
134
  - lib/agra_api/version.rb
401
135
  - spec/agra_api_spec.rb
402
136
  - spec/client_spec.rb
403
- - spec/fixtures/organisation
137
+ - spec/fixtures/organisation.json
404
138
  - spec/organisation_spec.rb
405
139
  - spec/spec_helper.rb
406
140
  homepage: http://github.com/controlshift/agra_api
@@ -423,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
423
157
  version: '0'
424
158
  requirements: []
425
159
  rubyforge_project:
426
- rubygems_version: 2.0.7
160
+ rubygems_version: 2.4.8
427
161
  signing_key:
428
162
  specification_version: 4
429
163
  summary: A very basic agra client gem
@@ -1 +0,0 @@
1
- {"admin_email":"info@controlshiftlabs.com","blog_link":"","campaigner_feedback_link":"","contact_email":"info@controlshiftlabs.com","created_at":"2013-04-15T13:31:49-04:00","facebook_url":"","google_analytics_tracking_id":"","host":"localhost","id":1,"name":"Default Org","parent_name":"","parent_url":"","placeholder_content_type":null,"placeholder_file_name":null,"placeholder_file_size":null,"placeholder_updated_at":null,"preferred_locale":"en","sendgrid_password":null,"sendgrid_username":null,"settings":{"show_petition_category_on_creation":"0","requires_user_confirmation_on_sign_up":"0","requires_location_for_campaign":"1","always_join_parent_org_when_sign_up":"0","hide_signatures_csv_download_link":"0","hide_phone_number_on_signature_form":"0","show_categories_as_dropdown":"0","list_petitions_under_map":"0","expose_broadcast_emails":"1","home_link_override":"","signature_disclaimer":"","new_account_disclaimer":"","join_label":"","country":"","google_maps_key":"","enable_facebook_login":"1","fb_app_id":"bar","fb_app_secret":"foo","notifiers":"actionkit","bsd_host":"","bsd_api_id":"","bsd_api_secret":"","salesforce_host":"","salesforce_consumer_key":"","salesforce_consumer_secret":"","salesforce_username":"","salesforce_security_token":"","action_kit_host":"foo.com","action_kit_username":"bar","action_kit_password":"foo","action_kit_country":"","action_kit_signature_page":"","action_kit_petition_page":"","long_name":"long name","phone_number_not_mandatory_on_registration":"0","action_kit_tag_id":[1,4],"action_kit_tag_ids":[[1,4]],"preferred_language":"en","tijuana_host":"test","tijuana_username":"test","tijuana_password":"test","supported_languages":["en"],"signature_fields_override":"","purpose_host":"host","purpose_username":"usern","purpose_password":"pass","purpose_movement_id":"movement"},"slug":"gsanetwork","time_zone":"Eastern Time (US & Canada)","twitter_account_name":"","updated_at":"2013-10-18T14:43:03-04:00","user_feedback_link":"","uservoice_widget_link":""}