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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63661b81ca760518f9bfdec16b047af79673cdc7
4
- data.tar.gz: 7c4c69d617599d1d34d44655fb9d3bd1ebf1c6c8
3
+ metadata.gz: 215e438e3f0e95ac1f29b36b855f3d4c2b893020
4
+ data.tar.gz: 4e8d1e034d1140bd4e9cfb89ef60712405fba76e
5
5
  SHA512:
6
- metadata.gz: 61f0dfc0d60c960b3c293336c707fca6accc453b2b25b9536aa31714eb68ffad247387a1e87f9c21e6ad5c962351fcc0bb2320a877a59c94db4e46b87e7a1c36
7
- data.tar.gz: 1529f580d87f063f89dcd2e4848846935c021969343f3e57e5d9ebb93634d3c7a53a974b64f9dd604ffe193fc91da77755a103a954a6649d8b93e81e69032481
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
- 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
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
- _action_create(options)
72
+ action_create(options)
73
+ # _action_create(options)
73
74
  end
74
75
 
75
76
  def action_get(options)
76
- _action_create(options)
77
+ action_create(options)
78
+ # _action_create(options)
77
79
  end
78
80
 
79
81
  def action_options(options)
80
- _action_create(options)
82
+ action_create(options)
83
+ # _action_create(options)
81
84
  end
82
85
 
83
86
  def action_post(options)
84
- _action_create(options)
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.28
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.28'
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-18 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor