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 +4 -4
- data/README.md +27 -21
- data/lib/liff_selector.rb +2 -2
- data/lib/liff_selector/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfd40b36aa865c404b99e7c5d426c8c5a6cfd3f6
|
4
|
+
data.tar.gz: b1981ab999901688b0b0131effb628e31272c943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
###
|
39
|
-
|
36
|
+
### create
|
37
|
+
create new liff html. give file name
|
40
38
|
|
41
39
|
```
|
42
|
-
$
|
43
|
-
|
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
|
-
###
|
49
|
-
|
44
|
+
### upload
|
45
|
+
upload new liff application. give type, url
|
50
46
|
|
51
47
|
```
|
52
|
-
$ bundle exec liff_select
|
53
|
-
>
|
54
|
-
|
55
|
-
>
|
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
|
-
###
|
60
|
-
|
54
|
+
### show
|
55
|
+
display all liff applications.
|
61
56
|
|
62
57
|
```
|
63
|
-
$ bundle exec liff_select
|
64
|
-
|
65
|
-
|
66
|
-
|
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.
|
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:)
|