itamae-mitsurin 0.28 → 0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/itamae-mitsurin/resource/http_request.rb +27 -22
- data/lib/itamae-mitsurin/version.txt +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 215e438e3f0e95ac1f29b36b855f3d4c2b893020
|
4
|
+
data.tar.gz: 4e8d1e034d1140bd4e9cfb89ef60712405fba76e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab40fe686b811eaae7cb488118941ff27ee6496a156f32449997f808da7d7d7feb28620dc3bbdb14c021ced74689143689d30bf274ed3b8d607c5fdb5753e117
|
7
|
+
data.tar.gz: d0c0f6299bc74e85fc27c61497dc8f77ad69ad5aef2f1ffa352e43765ffe083457a0f8f0c0243144934aaccf4e8b7407f6652faddec6b6f836f3f108fa2c57d4
|
@@ -7,8 +7,8 @@ module ItamaeMitsurin
|
|
7
7
|
class HttpRequest < File
|
8
8
|
RedirectLimitExceeded = Class.new(StandardError)
|
9
9
|
|
10
|
-
alias_method :_action_create, :action_create
|
11
|
-
undef_method :action_create, :action_delete, :action_edit
|
10
|
+
# alias_method :_action_create, :action_create
|
11
|
+
# undef_method :action_create, :action_delete, :action_edit
|
12
12
|
|
13
13
|
define_attribute :action, default: :get
|
14
14
|
define_attribute :headers, type: Hash, default: {}
|
@@ -17,21 +17,21 @@ module ItamaeMitsurin
|
|
17
17
|
define_attribute :url, type: String, required: true
|
18
18
|
|
19
19
|
def pre_action
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
def show_differences
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
20
|
+
# attributes.exist = true
|
21
|
+
# attributes.content = fetch_content
|
22
|
+
#
|
23
|
+
# send_tempfile
|
24
|
+
# compare_file
|
25
|
+
# end
|
26
|
+
#
|
27
|
+
# def show_differences
|
28
|
+
# current.mode = current.mode.rjust(4, '0') if current.mode
|
29
|
+
# attributes.mode = attributes.mode.rjust(4, '0') if attributes.mode
|
30
|
+
#
|
31
|
+
# super
|
32
|
+
#
|
33
|
+
# show_content_diff
|
34
|
+
# end
|
35
35
|
|
36
36
|
def fetch_content
|
37
37
|
uri = URI.parse(attributes.url)
|
@@ -65,26 +65,31 @@ module ItamaeMitsurin
|
|
65
65
|
attributes.content = response.body
|
66
66
|
|
67
67
|
super
|
68
|
-
response.body
|
68
|
+
#response.body
|
69
69
|
end
|
70
70
|
|
71
71
|
def action_delete(options)
|
72
|
-
|
72
|
+
action_create(options)
|
73
|
+
# _action_create(options)
|
73
74
|
end
|
74
75
|
|
75
76
|
def action_get(options)
|
76
|
-
|
77
|
+
action_create(options)
|
78
|
+
# _action_create(options)
|
77
79
|
end
|
78
80
|
|
79
81
|
def action_options(options)
|
80
|
-
|
82
|
+
action_create(options)
|
83
|
+
# _action_create(options)
|
81
84
|
end
|
82
85
|
|
83
86
|
def action_post(options)
|
84
|
-
|
87
|
+
action_create(options)
|
88
|
+
# _action_create(options)
|
85
89
|
end
|
86
90
|
|
87
91
|
def action_put(options)
|
92
|
+
# action_create(options)
|
88
93
|
_action_create(options)
|
89
94
|
end
|
90
95
|
end
|
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.29
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-mitsurin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.29'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akihiro Kamiyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|