quaderno 1.2.2 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTEyNDE3Njc3YzJlODc5ZmY5N2ZlNzhmZTgwZjJjNTBiY2NjNzQ4Zg==
5
+ data.tar.gz: !binary |-
6
+ OTVkOGQ3NWI3NWE0YjI1Mzk2ZDNhMDlhNzMyM2ZkYzQ4NTQwMjAwYw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YWI2OGRiZTM2YjkyNzhhYTkyZjBiN2ZlMDE2MGEzZjQ1YmM0MGVhMjRlNzdh
10
+ ZTNjZGI2NmQ5Y2Y0ZTRkZTdhZmQxZTUxNzcwNmQyMzI3YjE0ZjIwMDQ4N2Ew
11
+ ZWQ0NDQ1YTQ3N2NmOWIxZTI1NDU0MDM4MzI0ZmI2MmIxZTU4ODI=
12
+ data.tar.gz: !binary |-
13
+ MjU0N2I0NmQ0ZGFlYjM2ZDc4Y2RiMWMwOTUxMTg5NGNkMDhjY2NhNDA4MWM1
14
+ MDNmZmQ3ODI3MTAzZDU5NTJhZDU3YThjZTBiNTcxNThmNmVlNmFiZTZmOTUy
15
+ OWE0ZDgyMjc1NTE0YTE5MTQ2MTJhYjkxNzkxN2RlMjExNjQyZjQ=
data/Gemfile CHANGED
@@ -9,13 +9,13 @@ gem 'httparty'
9
9
  gem "rdoc", "~> 3.12"
10
10
 
11
11
  group :development do
12
- gem "jeweler", "~> 1.8.4"
12
+ gem "jeweler", "~> 2.0.1"
13
13
  end
14
14
 
15
15
  group :test do
16
16
  gem "bundler", ">= 1.0.0"
17
17
  gem 'fakeweb'
18
- gem "rcov", "~> 0.9.11" #">= 0"
18
+ gem "rcov", "~> 0.9.11"
19
19
  gem "shoulda", ">= 0"
20
20
  gem 'vcr', :require => 'vcr'
21
21
  end
data/Gemfile.lock CHANGED
@@ -1,34 +1,73 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (3.2.8)
5
- i18n (~> 0.6)
6
- multi_json (~> 1.0)
4
+ activesupport (4.1.1)
5
+ i18n (~> 0.6, >= 0.6.9)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
+ thread_safe (~> 0.1)
9
+ tzinfo (~> 1.1)
10
+ addressable (2.3.6)
11
+ builder (3.2.2)
12
+ descendants_tracker (0.0.4)
13
+ thread_safe (~> 0.3, >= 0.3.1)
7
14
  fakeweb (1.3.0)
8
- git (1.2.5)
9
- httparty (0.9.0)
10
- multi_json (~> 1.0)
11
- multi_xml
12
- i18n (0.6.1)
13
- jeweler (1.8.4)
14
- bundler (~> 1.0)
15
+ faraday (0.9.0)
16
+ multipart-post (>= 1.2, < 3)
17
+ git (1.2.6)
18
+ github_api (0.11.3)
19
+ addressable (~> 2.3)
20
+ descendants_tracker (~> 0.0.1)
21
+ faraday (~> 0.8, < 0.10)
22
+ hashie (>= 1.2)
23
+ multi_json (>= 1.7.5, < 2.0)
24
+ nokogiri (~> 1.6.0)
25
+ oauth2
26
+ hashie (2.1.1)
27
+ highline (1.6.21)
28
+ httparty (0.13.1)
29
+ json (~> 1.8)
30
+ multi_xml (>= 0.5.2)
31
+ i18n (0.6.9)
32
+ jeweler (2.0.1)
33
+ builder
34
+ bundler (>= 1.0)
15
35
  git (>= 1.2.5)
36
+ github_api
37
+ highline (>= 1.6.15)
38
+ nokogiri (>= 1.5.10)
16
39
  rake
17
40
  rdoc
18
- json (1.7.5)
19
- multi_json (1.3.6)
20
- multi_xml (0.5.1)
21
- rake (0.9.2.2)
41
+ json (1.8.1)
42
+ jwt (0.1.12)
43
+ mini_portile (0.5.3)
44
+ minitest (5.3.3)
45
+ multi_json (1.10.0)
46
+ multi_xml (0.5.5)
47
+ multipart-post (2.0.0)
48
+ nokogiri (1.6.1)
49
+ mini_portile (~> 0.5.0)
50
+ oauth2 (0.9.3)
51
+ faraday (>= 0.8, < 0.10)
52
+ jwt (~> 0.1.8)
53
+ multi_json (~> 1.3)
54
+ multi_xml (~> 0.5)
55
+ rack (~> 1.2)
56
+ rack (1.5.2)
57
+ rake (10.3.1)
22
58
  rcov (0.9.11)
23
- rdoc (3.12)
59
+ rdoc (3.12.2)
24
60
  json (~> 1.4)
25
- shoulda (3.1.1)
26
- shoulda-context (~> 1.0)
27
- shoulda-matchers (~> 1.2)
28
- shoulda-context (1.0.0)
29
- shoulda-matchers (1.3.0)
61
+ shoulda (3.5.0)
62
+ shoulda-context (~> 1.0, >= 1.0.1)
63
+ shoulda-matchers (>= 1.4.1, < 3.0)
64
+ shoulda-context (1.2.1)
65
+ shoulda-matchers (2.6.1)
30
66
  activesupport (>= 3.0.0)
31
- vcr (2.3.0)
67
+ thread_safe (0.3.3)
68
+ tzinfo (1.1.0)
69
+ thread_safe (~> 0.1)
70
+ vcr (2.9.0)
32
71
 
33
72
  PLATFORMS
34
73
  ruby
@@ -37,7 +76,7 @@ DEPENDENCIES
37
76
  bundler (>= 1.0.0)
38
77
  fakeweb
39
78
  httparty
40
- jeweler (~> 1.8.4)
79
+ jeweler (~> 2.0.1)
41
80
  rcov (~> 0.9.11)
42
81
  rdoc (~> 3.12)
43
82
  shoulda
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Quaderno-ruby is a ruby wrapper for [quaderno api] (https://github.com/recrea/quaderno-api).
4
4
  As the API, it's mostly CRUD.
5
5
 
6
- Current version is 1.2.0. See the changelog [here](https://github.com/recrea/quaderno-ruby/blob/master/changelog.md)
6
+ Current version is 1.2.2. See the changelog [here](https://github.com/recrea/quaderno-ruby/blob/master/changelog.md)
7
7
 
8
8
  ## Installation & Configuration
9
9
 
@@ -22,6 +22,17 @@ To configure just add this to your initializers
22
22
  end
23
23
  ```
24
24
 
25
+ ## Get authorization data
26
+
27
+ You can get your account subdomain by grabbing it from your account url or by calling the authorization method with your personal api token.
28
+
29
+ ```ruby
30
+ Quaderno::Base.authorization 'my_authenticate_token'
31
+ # => {"identity"=>{"id"=>737000, "name"=>"Walter White", "email"=>"cooking@br.bd", "href"=>"https://quadernoapp.com/my_account_subdomain/api/v1/"}}
32
+ ```
33
+
34
+ This will return a hash with the information about your api url, which includes the account subdomain.
35
+
25
36
  ## Ping the service
26
37
  You can ping the service in order to check if it is up with:
27
38
 
@@ -96,7 +107,7 @@ will delete the contact with the id passed as parameter.
96
107
 
97
108
  ### Getting items
98
109
  ```ruby
99
- Quaderno::Item #=> Array
110
+ Quaderno::Item.all() #=> Array
100
111
  ```
101
112
 
102
113
  will return an array with all your items.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.3.0
data/build_install.sh CHANGED
@@ -1,2 +1,2 @@
1
1
  gem build quaderno.gemspec
2
- gem install quaderno-1.2.2.gem
2
+ gem install quaderno-1.3.0.gem
data/changelog.md CHANGED
@@ -1,4 +1,7 @@
1
1
  #Changelog
2
+ ##1.3.0
3
+
4
+ * Removed debug mode
2
5
 
3
6
  ##1.2.2
4
7
 
@@ -10,7 +10,8 @@ module Quaderno
10
10
  @@auth_token = nil
11
11
  @@subdomain = nil
12
12
  @@rate_limit_info = nil
13
- @@debug = false
13
+
14
+ self.base_uri 'https://quadernoapp.com/'
14
15
 
15
16
  def self.api_model(klass)
16
17
  instance_eval <<-END
@@ -28,8 +29,6 @@ module Quaderno
28
29
  #Default way to configure the authenticata data
29
30
  def self.configure
30
31
  yield self
31
-
32
- self.base_uri( @@debug ? 'http://localhost:3000/' : 'https://quadernoapp.com/')
33
32
  end
34
33
 
35
34
  def self.auth_token=(auth_token)
@@ -40,12 +39,6 @@ module Quaderno
40
39
  @@subdomain = subdomain
41
40
  end
42
41
 
43
- def self.debug=(val)
44
- if val != false
45
- @@debug = true
46
- end
47
- end
48
-
49
42
  def self.authorization(auth_token)
50
43
  begin
51
44
  party_response = get("/subdomain/api/v1/authorization.json", basic_auth: { username: auth_token })
data/quaderno.gemspec CHANGED
@@ -2,14 +2,15 @@
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: quaderno 1.3.0 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "quaderno"
8
- s.version = "1.2.2"
9
+ s.version = "1.3.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
12
  s.authors = ["Recrea"]
12
- s.date = "2014-02-04"
13
+ s.date = "2014-05-07"
13
14
  s.description = "longer description of your gem"
14
15
  s.email = "carlos@recrea.es"
15
16
  s.extra_rdoc_files = [
@@ -90,25 +91,25 @@ Gem::Specification.new do |s|
90
91
  s.homepage = "http://github.com/recrea/quaderno-ruby"
91
92
  s.licenses = ["MIT"]
92
93
  s.require_paths = ["lib"]
93
- s.rubygems_version = "1.8.24"
94
+ s.rubygems_version = "2.1.11"
94
95
  s.summary = "one-line summary of your gem"
95
96
 
96
97
  if s.respond_to? :specification_version then
97
- s.specification_version = 3
98
+ s.specification_version = 4
98
99
 
99
100
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
100
101
  s.add_runtime_dependency(%q<httparty>, [">= 0"])
101
102
  s.add_runtime_dependency(%q<rdoc>, ["~> 3.12"])
102
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
103
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
103
104
  else
104
105
  s.add_dependency(%q<httparty>, [">= 0"])
105
106
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
106
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
107
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
107
108
  end
108
109
  else
109
110
  s.add_dependency(%q<httparty>, [">= 0"])
110
111
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
111
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
112
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
112
113
  end
113
114
  end
114
115
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quaderno
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
5
- prerelease:
4
+ version: 1.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Recrea
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-04 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: httparty
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rdoc
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,19 +41,17 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: jeweler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: 1.8.4
47
+ version: 2.0.1
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: 1.8.4
54
+ version: 2.0.1
62
55
  description: longer description of your gem
63
56
  email: carlos@recrea.es
64
57
  executables: []
@@ -139,29 +132,25 @@ files:
139
132
  homepage: http://github.com/recrea/quaderno-ruby
140
133
  licenses:
141
134
  - MIT
135
+ metadata: {}
142
136
  post_install_message:
143
137
  rdoc_options: []
144
138
  require_paths:
145
139
  - lib
146
140
  required_ruby_version: !ruby/object:Gem::Requirement
147
- none: false
148
141
  requirements:
149
142
  - - ! '>='
150
143
  - !ruby/object:Gem::Version
151
144
  version: '0'
152
- segments:
153
- - 0
154
- hash: -117995190404261389
155
145
  required_rubygems_version: !ruby/object:Gem::Requirement
156
- none: false
157
146
  requirements:
158
147
  - - ! '>='
159
148
  - !ruby/object:Gem::Version
160
149
  version: '0'
161
150
  requirements: []
162
151
  rubyforge_project:
163
- rubygems_version: 1.8.24
152
+ rubygems_version: 2.1.11
164
153
  signing_key:
165
- specification_version: 3
154
+ specification_version: 4
166
155
  summary: one-line summary of your gem
167
156
  test_files: []