liff_selector 0.4.0 → 0.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ff3d5d998f5079fa7d3168b6ac976c28f12e0e1
4
- data.tar.gz: 79c08d27169bffa7848335286088d1ad9d30b53e
3
+ metadata.gz: cfd40b36aa865c404b99e7c5d426c8c5a6cfd3f6
4
+ data.tar.gz: b1981ab999901688b0b0131effb628e31272c943
5
5
  SHA512:
6
- metadata.gz: be593e75dddf4bc34b94a846692f81823a3527271182b8afacb62dcc3ee3b60e0b2758881c19d8c9a154dae5be3e39a5e09f40fa5581d31596f419d9e68875f3
7
- data.tar.gz: 3aab652eae70d833607af02b68211c9d6cb31dcc597d97253f60b044ca110a569157e7a8ffb7a0fe0c308438e968ca674c7421eb4a02a87420ff1bfc925d2ca6
6
+ metadata.gz: c81feae53504a062d0b0cd8c1d00576590eced320ee3eab81aa15dac791ce590f0f39cca8bf3db0e7dab172a58b387106e2c395ab19f30076dee14f2ee92146e
7
+ data.tar.gz: a92f9d107f4ba59ebc637f4fad34b4fce831fe79030c2b01766977fabd8c9ec778fdb7cb633ca40af061419ac658389a6b591f19c430057d2e20dc28f41710da
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/liff_selector`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
@@ -35,35 +33,32 @@ $ export LINE_TOKEN="line_access_token"
35
33
 
36
34
  ## Usage
37
35
 
38
- ### show
39
- display all liff applications.
36
+ ### create
37
+ create new liff html. give file name
40
38
 
41
39
  ```
42
- $ $ bundle exec liff_select show
43
- id liffId type url
44
- 1. 1578425738-81wbQ6WM full https://example.com
45
- 2. 1578425738-8AM1APKY tall https://esample.com/1
40
+ $ bundle exec liff_select create index
41
+ > > [SUCESS] make ./index
46
42
  ```
47
43
 
48
- ### same
49
- display same type and url liff applications.
44
+ ### upload
45
+ upload new liff application. give type, url
50
46
 
51
47
  ```
52
- $ bundle exec liff_select same
53
- > "type": full, "url": https://example.com
54
- - id: 1, liffId: XXXXXXXXXX-XXXXXXXX
55
- > "type": tall, "url": https://esample.com/1
56
- - id: 2, liffId: XXXXXXXXXX-XXXXXXXX
48
+ $ bundle exec liff_select upload compact https://example.com
49
+ > make liff app
50
+ > [SUCESS] make app
51
+ > app uri : line://app/XXXXXXXXXX-XXXXXXXX
57
52
  ```
58
53
 
59
- ### create
60
- create new liff application. give type, url
54
+ ### show
55
+ display all liff applications.
61
56
 
62
57
  ```
63
- $ bundle exec liff_select create compact https://example.com
64
- > make liff app
65
- > [SUCESS] make app
66
- > app uri : line://app/XXXXXXXXXX-XXXXXXXX
58
+ $ $ bundle exec liff_select show
59
+ id liffId type url
60
+ 1. 1578425738-81wbQ6WM full https://example.com
61
+ 2. 1578425738-8AM1APKY tall https://esample.com/1
67
62
  ```
68
63
 
69
64
  ### delete
@@ -75,6 +70,17 @@ $ bundle exec liff_select delete 1
75
70
  > [SUCESS] delete app
76
71
  ```
77
72
 
73
+ ### same
74
+ display same type and url liff applications.
75
+
76
+ ```
77
+ $ bundle exec liff_select same
78
+ > "type": full, "url": https://example.com
79
+ - id: 1, liffId: XXXXXXXXXX-XXXXXXXX
80
+ > "type": tall, "url": https://esample.com/1
81
+ - id: 2, liffId: XXXXXXXXXX-XXXXXXXX
82
+ ```
83
+
78
84
  ### clean
79
85
  delete same type and url applications
80
86
 
data/lib/liff_selector.rb CHANGED
@@ -53,9 +53,9 @@ module LiffSelector
53
53
  end
54
54
 
55
55
  def self.create(file_name:)
56
- sample = File.read('./assets/sample.html')
56
+ sample = File.join( File.dirname(__FILE__), './assets/sample.html')
57
57
  File.write("#{file_name}.html", sample)
58
- puts "> make ./#{file_name}.html"
58
+ puts "> [SUCESS] make ./#{file_name}.html"
59
59
  end
60
60
 
61
61
  def self.upload(type:, url:)
@@ -1,3 +1,3 @@
1
1
  module LiffSelector
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liff_selector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 4geru