liff_selector 0.2.0 → 0.3.0

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: 29a33ebd8f6b48ab71794cc22749eeb803cb7041
4
- data.tar.gz: b2ae0b6481700f021d5efb2906d7941e41235446
3
+ metadata.gz: 0a22069d7fa911f369e4ad6c2c26a090d6f5b557
4
+ data.tar.gz: 672c0d48ce2b02a35e4c485fa033a4eb929d2fb9
5
5
  SHA512:
6
- metadata.gz: ec4dbd6c1aa48bf288a707906f3cf59d3aebfc0d246bce92961dc02f20cb6173003b8d14271e5508de331c2cd9a1696ee1fcbd40e63d289e41a9bfd1bbd95943
7
- data.tar.gz: 64328ee947196ea038031293e2efc4d749272846375d5d674364acc145195665542958e423b4d923c13f1dc7d8aa7dc011b23ea675cd9bf6cba0567a973e263e
6
+ metadata.gz: e57d52d05706084b65b809aa9dbdaa09c9d9c8b131bade7132d209f7a8f7a778badecf44c5d872b07b48e5b61abfb5ad92d563eed043b8dffb2ed390a2390bd0
7
+ data.tar.gz: 5a9ab3999301df8aa9e0f28490b3d2748f47def4322e6882ff2ffb22b4200cd1ee4a27d891561d042f8ea0118e58b54923e69918653915322828a0c1ee35af66
data/README.md CHANGED
@@ -20,13 +20,26 @@ Or install it yourself as:
20
20
 
21
21
  $ gem install liff_selector
22
22
 
23
+ ## Introduction
24
+
25
+ setup envfile. write assign enviroment or dotfile variable line_access_token.
26
+ line_acces_token write next figure place.
27
+
28
+ <img src='./image/token.png' />
29
+
30
+ setting envrioment variable in shell.
31
+
32
+ ```
33
+ $ export LINE_TOKEN="line_access_token"
34
+ ```
35
+
23
36
  ## Usage
24
37
 
25
38
  ### show
26
39
  display all liff applications.
27
40
 
28
41
  ```
29
- $ ./exe/liff_select show
42
+ $ $ bundle exec liff_select show
30
43
  id liffId type url
31
44
  1. 1578425738-81wbQ6WM full https://example.com
32
45
  2. 1578425738-8AM1APKY tall https://esample.com/1
@@ -36,7 +49,7 @@ id liffId type url
36
49
  display same type and url liff applications.
37
50
 
38
51
  ```
39
- ./exe/liff_select same
52
+ $ bundle exec liff_select same
40
53
  > "type": full, "url": https://example.com
41
54
  - id: 1, liffId: XXXXXXXXXX-XXXXXXXX
42
55
  > "type": tall, "url": https://esample.com/1
@@ -47,16 +60,17 @@ display same type and url liff applications.
47
60
  create new liff application. give type, url
48
61
 
49
62
  ```
50
- ./exe/liff_select create compact https://example.com
63
+ $ bundle exec liff_select create compact https://example.com
51
64
  > make liff app
52
65
  > [SUCESS] make app
53
66
  > app uri : line://app/XXXXXXXXXX-XXXXXXXX
54
67
  ```
55
68
 
56
69
  ### delete
70
+ delete liff application
57
71
 
58
72
  ```
59
- ./exe/liff_select delete 1
73
+ $ bundle exec liff_select delete 1
60
74
  1. XXXXXXXXXX-XXXXXXXX compact https://example.com
61
75
  > [SUCESS] delete app
62
76
  ```
@@ -65,7 +79,7 @@ create new liff application. give type, url
65
79
  delete same type and url applications
66
80
 
67
81
  ```
68
- ./exe/liff_select clean
82
+ $ bundle exec liff_select clean
69
83
  > "type": tall, "url": https://liff-a4geru.c9users.io/charge
70
84
  - id: 1, liffId: 1578425738-8AM1APKY
71
85
  > "type": compact, "url": https://liff-a4geru.c9users.io/
@@ -79,20 +93,15 @@ delete same type and url applications
79
93
  > [SUCESS] delete app
80
94
  ```
81
95
 
82
- ## Development
96
+ ### document
97
+ display reference url
83
98
 
84
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
85
-
86
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
87
-
88
- ## Contributing
99
+ ```
100
+ $ bundle exec liff_select document
101
+ document url : https://developers.line.me/ja/docs/liff/reference
102
+ ```
89
103
 
90
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/liff_selector. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
91
104
 
92
105
  ## License
93
106
 
94
107
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
95
-
96
- ## Code of Conduct
97
-
98
- Everyone interacting in the LiffSelector project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/liff_selector/blob/master/CODE_OF_CONDUCT.md).
data/image/token.png ADDED
Binary file
data/lib/liff_selector.rb CHANGED
@@ -19,6 +19,8 @@ module LiffSelector
19
19
  when 'delete'
20
20
  raise ArgumentError, 'give _liff_id_' if argv.length != 2
21
21
  delete(liff_id: argv[1])
22
+ when 'document'
23
+ puts 'document url : https://developers.line.me/ja/docs/liff/reference'
22
24
  else
23
25
  raise NotImplementedError, 'unknow command given'
24
26
  end
@@ -1,3 +1,3 @@
1
1
  module LiffSelector
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liff_selector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 4geru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-17 00:00:00.000000000 Z
11
+ date: 2018-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -91,13 +91,13 @@ files:
91
91
  - ".gitignore"
92
92
  - CODE_OF_CONDUCT.md
93
93
  - Gemfile
94
- - Gemfile.lock
95
94
  - LICENSE.txt
96
95
  - README.md
97
96
  - Rakefile
98
97
  - bin/console
99
98
  - bin/setup
100
99
  - exe/liff_select
100
+ - image/token.png
101
101
  - lib/liff_selector.rb
102
102
  - lib/liff_selector/version.rb
103
103
  - liff_selector.gemspec
data/Gemfile.lock DELETED
@@ -1,33 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- domain_name (0.5.20180417)
5
- unf (>= 0.0.5, < 1.0.0)
6
- dotenv (2.4.0)
7
- http-cookie (1.0.3)
8
- domain_name (~> 0.5)
9
- liff_selector (0.1.0)
10
- dotenv
11
- rest-client
12
- mime-types (3.1)
13
- mime-types-data (~> 3.2015)
14
- mime-types-data (3.2016.0521)
15
- netrc (0.11.0)
16
- rest-client (2.0.2)
17
- http-cookie (>= 1.0.2, < 2.0)
18
- mime-types (>= 1.16, < 4.0)
19
- netrc (~> 0.8)
20
- unf (0.1.4)
21
- unf_ext
22
- unf_ext (0.0.7.5)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- dotenv
29
- liff_selector
30
- rest-client
31
-
32
- BUNDLED WITH
33
- 1.16.0