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 +4 -4
- data/CHANGES +1 -1
- data/{Thorfile → commands.thor} +4 -4
- data/lib/resource_accessor/resource_accessor.rb +4 -2
- data/lib/resource_accessor/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca3c89aaa549ea99eba018ece9947848c52f57eb
|
4
|
+
data.tar.gz: 8cbc62dc0212cd28eb6adb06bb62be0360b57d42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e5276a18b3690bd82987f2d3d70b425d2a25f76be31c695979056796572a5211ea1f0f23ffbaae416b361eda3b253972a9bd4a561f0bdc844c77a06c3ec253
|
7
|
+
data.tar.gz: 20bb51c302b38a6817b4efa44ba53ccd5f46c8029ac19ba74bfe90431d8653b5aeded463f386362ff79ea721e84494c13db8dcaccec936b712fd421359b0afcd
|
data/CHANGES
CHANGED
data/{Thorfile → commands.thor}
RENAMED
@@ -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
|
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
|
-
|
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
|
-
|
61
|
+
if URI(location).scheme
|
62
|
+
new_uri = URI(location)
|
63
|
+
else
|
62
64
|
new_uri = URI(url)
|
63
|
-
new_uri.path =
|
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
|
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.
|
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-
|
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
|
-
-
|
72
|
+
- commands.thor
|
73
73
|
- lib/resource_accessor.rb
|
74
74
|
- lib/resource_accessor/resource_accessor.rb
|
75
75
|
- lib/resource_accessor/version.rb
|