resource_accessor 1.2.5 → 1.2.6

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: eb856d5526006c23c4e785dfb2930bdcd1e2affd
4
- data.tar.gz: 088c6161ce26953604b62e96f68e6d9d9cd70115
3
+ metadata.gz: ca3c89aaa549ea99eba018ece9947848c52f57eb
4
+ data.tar.gz: 8cbc62dc0212cd28eb6adb06bb62be0360b57d42
5
5
  SHA512:
6
- metadata.gz: 50de3c8ddc2fde2c6218a928f1891cedd73a7d8dfc52af06e1031c570cfdfe503b69b046debdecf11f685ae43157a789c48d9a1583b446ac80ff055fb40ff25b
7
- data.tar.gz: 8ae9a1e35fa6fd7e15d7474426d4e6d72c70365b1960b293eeea272038fdc13879e112a7d433f539db4ae128407b28e86c480e436f6ef0fe80296b5767d8b722
6
+ metadata.gz: 54e5276a18b3690bd82987f2d3d70b425d2a25f76be31c695979056796572a5211ea1f0f23ffbaae416b361eda3b253972a9bd4a561f0bdc844c77a06c3ec253
7
+ data.tar.gz: 20bb51c302b38a6817b4efa44ba53ccd5f46c8029ac19ba74bfe90431d8653b5aeded463f386362ff79ea721e84494c13db8dcaccec936b712fd421359b0afcd
data/CHANGES CHANGED
@@ -32,6 +32,6 @@
32
32
 
33
33
  * Adding escape flag in order to control whether we want to escape parameter or not.
34
34
 
35
- == Version 1.2.4-1.2.5
35
+ == Version 1.2.4-1.2.6
36
36
 
37
37
  * Bug fix
@@ -6,7 +6,7 @@ require "thor"
6
6
  require "resource_accessor/version"
7
7
  require "gemspec_deps_gen/gemspec_deps_gen"
8
8
 
9
- class ProjectCommands < Thor
9
+ class Commands < Thor
10
10
 
11
11
  def initialize *params
12
12
  super
@@ -19,8 +19,6 @@ class ProjectCommands < Thor
19
19
  def generate
20
20
  generator = GemspecDepsGen.new
21
21
 
22
- print @project_name
23
-
24
22
  generator.generate_dependencies "spec", "#{@project_name}.gemspec.erb", "#{@project_name}.gemspec"
25
23
  end
26
24
  end
@@ -54,4 +52,6 @@ class ProjectCommands < Thor
54
52
  end
55
53
  end
56
54
 
57
- ProjectCommands.start
55
+ if File.basename($0) != 'thor'
56
+ Commands.start
57
+ end
@@ -58,9 +58,11 @@ class ResourceAccessor
58
58
  if response.class == Net::HTTPMovedPermanently
59
59
  location = response['location']
60
60
 
61
- unless URI(location).scheme
61
+ if URI(location).scheme
62
+ new_uri = URI(location)
63
+ else
62
64
  new_uri = URI(url)
63
- new_uri.path = response['location']
65
+ new_uri.path = location
64
66
  end
65
67
 
66
68
  response = execute_request new_uri.to_s, query, method, headers, body, escape, cookie
@@ -1,3 +1,3 @@
1
1
  module ResourceAccessor
2
- VERSION = "1.2.5"
2
+ VERSION = "1.2.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resource_accessor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
@@ -69,7 +69,7 @@ files:
69
69
  - Gemfile.lock
70
70
  - LICENSE
71
71
  - README.md
72
- - Thorfile
72
+ - commands.thor
73
73
  - lib/resource_accessor.rb
74
74
  - lib/resource_accessor/resource_accessor.rb
75
75
  - lib/resource_accessor/version.rb