freckly 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freckly (0.0.3)
4
+ freckly (0.0.5)
5
5
  faraday (~> 0.5.7)
6
- faraday_middleware (~> 0.3.0)
6
+ faraday_middleware (~> 0.3.2)
7
7
  hashie (~> 0.4.0)
8
- multi_xml (~> 0.2.0)
8
+ multi_xml (~> 0.2.2)
9
+ nokogiri (~> 1.4.1)
9
10
 
10
11
  GEM
11
12
  remote: http://rubygems.org/
@@ -22,6 +23,7 @@ GEM
22
23
  hashie (0.4.0)
23
24
  multi_xml (0.2.2)
24
25
  multipart-post (1.1.0)
26
+ nokogiri (1.4.4)
25
27
  rack (1.2.2)
26
28
  rake (0.8.7)
27
29
  rspec (2.1.0)
@@ -15,9 +15,10 @@ Gem::Specification.new do |s|
15
15
  s.rubyforge_project = "freckly"
16
16
 
17
17
  s.add_dependency "faraday", "~> 0.5.7"
18
- s.add_dependency "faraday_middleware", "~> 0.3.0"
19
- s.add_dependency "multi_xml", "~> 0.2.0"
18
+ s.add_dependency "faraday_middleware", "~> 0.3.2"
19
+ s.add_dependency "multi_xml", "~> 0.2.2"
20
20
  s.add_dependency "hashie", "~> 0.4.0"
21
+ s.add_dependency "nokogiri", "~> 1.4.1"
21
22
 
22
23
  s.add_development_dependency "rspec", "~> 2.1.0"
23
24
  s.add_development_dependency "webmock", "~> 1.6.1"
@@ -8,12 +8,13 @@ require "multi_xml"
8
8
  # Files
9
9
  require "freckly/project"
10
10
  require "freckly/entry"
11
- require "freckly/faraday/parse_xml"
12
11
  require "freckly/ext/enumerable"
13
12
  require "freckly/faraday/utils"
14
13
 
15
14
  module Freckly
16
15
  class << self
16
+ MultiXml.parser = :nokogiri
17
+
17
18
  attr_accessor :token, :subdomain
18
19
 
19
20
  def authed_get(path, options={})
@@ -1,3 +1,3 @@
1
1
  module Freckly
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: freckly
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Red Davis
@@ -32,7 +32,7 @@ dependencies:
32
32
  requirements:
33
33
  - - ~>
34
34
  - !ruby/object:Gem::Version
35
- version: 0.3.0
35
+ version: 0.3.2
36
36
  type: :runtime
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
- version: 0.2.0
46
+ version: 0.2.2
47
47
  type: :runtime
48
48
  version_requirements: *id003
49
49
  - !ruby/object:Gem::Dependency
@@ -58,38 +58,49 @@ dependencies:
58
58
  type: :runtime
59
59
  version_requirements: *id004
60
60
  - !ruby/object:Gem::Dependency
61
- name: rspec
61
+ name: nokogiri
62
62
  prerelease: false
63
63
  requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 1.4.1
69
+ type: :runtime
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: rspec
73
+ prerelease: false
74
+ requirement: &id006 !ruby/object:Gem::Requirement
64
75
  none: false
65
76
  requirements:
66
77
  - - ~>
67
78
  - !ruby/object:Gem::Version
68
79
  version: 2.1.0
69
80
  type: :development
70
- version_requirements: *id005
81
+ version_requirements: *id006
71
82
  - !ruby/object:Gem::Dependency
72
83
  name: webmock
73
84
  prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
85
+ requirement: &id007 !ruby/object:Gem::Requirement
75
86
  none: false
76
87
  requirements:
77
88
  - - ~>
78
89
  - !ruby/object:Gem::Version
79
90
  version: 1.6.1
80
91
  type: :development
81
- version_requirements: *id006
92
+ version_requirements: *id007
82
93
  - !ruby/object:Gem::Dependency
83
94
  name: rake
84
95
  prerelease: false
85
- requirement: &id007 !ruby/object:Gem::Requirement
96
+ requirement: &id008 !ruby/object:Gem::Requirement
86
97
  none: false
87
98
  requirements:
88
99
  - - ~>
89
100
  - !ruby/object:Gem::Version
90
101
  version: 0.8.7
91
102
  type: :development
92
- version_requirements: *id007
103
+ version_requirements: *id008
93
104
  description: Wrapper for Freckle
94
105
  email:
95
106
  - red@railslove.com
@@ -112,7 +123,6 @@ files:
112
123
  - lib/freckly.rb
113
124
  - lib/freckly/entry.rb
114
125
  - lib/freckly/ext/enumerable.rb
115
- - lib/freckly/faraday/parse_xml.rb
116
126
  - lib/freckly/faraday/utils.rb
117
127
  - lib/freckly/project.rb
118
128
  - lib/freckly/version.rb
@@ -1,20 +0,0 @@
1
- # Taken from:
2
-
3
- module Faraday
4
- class Response::ParseXml < Response::Middleware
5
- MultiXml.parser = :rexml
6
-
7
- def self.register_on_complete(env)
8
- env[:response].on_complete do |response|
9
- response[:body] = begin
10
- MultiXml.parse(response[:body])
11
- end
12
- end
13
- end
14
-
15
- def initialize(app)
16
- super
17
- @parser = nil
18
- end
19
- end
20
- end