husc 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/husc/version.rb +1 -1
  4. data/lib/husc.rb +4 -4
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 288319d18b53995f517d2a64a92a99bd8496c0d8e5a9dbbed81a44ad9eb8f2a4
4
- data.tar.gz: 4024ce1408fdcd950db1c87c93cd72c61530dc499a3f60dc86b07d6d3487aab6
3
+ metadata.gz: d2ecc7f13a00dac04cd5ab80ee385bb90e04d730d235225829d749d3c77cac57
4
+ data.tar.gz: 6a2e882ca3c00ecd12ebba69c98b72c8317d87226a441236214bd6f3cb25e9d5
5
5
  SHA512:
6
- metadata.gz: 7d2980b00653212995ee9b9f9112593667c71c0f9aed5ad224e421b690ccd624d74b8d66878d893dd416c1f53c56ccbe8817a476c6e5177527e0b2babf183c50
7
- data.tar.gz: c3bab2dd63d055977380dc607dd502e47643d27fd3be7f438c77d15ddd0af4a4f46ec31d9d000aa28eeefe0b3589448bc18861a28c5a8ec5fc5972061eac13c0
6
+ metadata.gz: e07266a3fb848360f8c3e8b367773c3fd0881c248d34940f05e549b8944a681ea637833aef4312f75256eeed88e22060d81a80c51516ca71a20ca93d9ea9a9d6
7
+ data.tar.gz: 745f8810a558d0ef25a69a7113e987b0c45f70b56127662cfc8774e2d2a79b7925d1315d8daa76fe838ba155925f41040ea0a18bf2c79d002f224fc9bbbcec41
data/README.md CHANGED
@@ -85,8 +85,8 @@ doc.send(id:'id attribute', check:true) # check
85
85
  doc.send(id:'id attribute', check:false) # uncheck
86
86
 
87
87
  # button click
88
- doc.send(id:'id attribute', button:true) # click
89
- doc.send(id:'id attribute', button:false) # unclick
88
+ doc.send(id:'id attribute', click:true) # click
89
+ doc.send(id:'id attribute', click:false) # unclick
90
90
 
91
91
 
92
92
  # example of specify other attribute
data/lib/husc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Husc
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/husc.rb CHANGED
@@ -79,7 +79,7 @@ class Husc
79
79
  # テキスト,数値など  => value(String)を指定
80
80
  # チェックボックス   => check(Bool)を指定
81
81
  # ファイルアップロード => file(String)を指定
82
- # ボタンクリック => button(Bool)を指定
82
+ # ボタンクリック => click(Bool)を指定
83
83
  @params << {}
84
84
  opts.each {|key, value| @params[-1][key.to_sym] = value}
85
85
  end
@@ -122,9 +122,9 @@ class Husc
122
122
  end
123
123
 
124
124
  # ボタンクリック
125
- if param.include?(:button)
126
- button = param.delete(:button)
127
- next unless button
125
+ if param.include?(:click)
126
+ click = param.delete(:click)
127
+ next unless click
128
128
  form.button_with(**param) unless form.button_with(**param).nil?
129
129
  end
130
130
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: husc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuya Abe