TagoLine 0.1.4.7 → 0.1.4.8
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 +14 -39
- data/lib/TagoLine/LoginButton.rb +6 -0
- data/lib/TagoLine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac4147f91359f056a8937988445d5f48a7b0e914950eeff11544f0cf601e9b90
|
4
|
+
data.tar.gz: 7413ece6ca0f89195ce36b6c6eb6c10ce7474f7b3e92aee1f15cc8b56d94dc31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee6d7421fdb7e9914059579e94ebf3c562164589827dcc372e1b3dc3e7c0e97561d86ee7ff4276b24f14faa496c3a81770ff8c7744d9e8ccfaefdceb54a7fb3
|
7
|
+
data.tar.gz: f9b7564236065709d42f813cd2f5dfc0e30fb15fb4b9601b5d4ddf5b3cb67d39dd56858afd16c311444e38d3cb8e25083c3002194de311d559d670e1db790b88
|
data/README.md
CHANGED
@@ -1,39 +1,14 @@
|
|
1
|
-
# TagoLine
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
-
|
17
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
18
|
-
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
|
-
## Development
|
24
|
-
|
25
|
-
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.
|
26
|
-
|
27
|
-
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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
|
-
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/TagoLine. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/TagoLine/blob/master/CODE_OF_CONDUCT.md).
|
32
|
-
|
33
|
-
## License
|
34
|
-
|
35
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
36
|
-
|
37
|
-
## Code of Conduct
|
38
|
-
|
39
|
-
Everyone interacting in the TagoLine project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/TagoLine/blob/master/CODE_OF_CONDUCT.md).
|
1
|
+
# TagoLine使い方
|
2
|
+
## 前提条件
|
3
|
+
下記の環境変数が設定されていることが前提となります。
|
4
|
+
```
|
5
|
+
LINE_CALLBACK_URL
|
6
|
+
LINE_CHANNEL_ID
|
7
|
+
LINE_CHANNEL_SECRET
|
8
|
+
```
|
9
|
+
|
10
|
+
## ログインボタン
|
11
|
+
ビューの中でこう書きます。
|
12
|
+
```
|
13
|
+
<%= TagoLine::LoginButton.show %>
|
14
|
+
```
|
data/lib/TagoLine/LoginButton.rb
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
require 'action_view'
|
2
|
+
require 'rails/all'
|
3
|
+
|
2
4
|
module TagoLine
|
3
5
|
class LoginButton
|
4
6
|
|
7
|
+
def self.showSession()
|
8
|
+
session[:test]
|
9
|
+
end
|
10
|
+
|
5
11
|
def self.show()
|
6
12
|
text = buttonStyle()
|
7
13
|
text+="<a class='line_login_button' href='https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id="+ENV["LINE_CHANNEL_ID"]+"&redirect_uri="+ENV["LINE_CALLBACK_URL"]+"&state=12345abcde&scope=profile%20openid%20email&nonce=09876xyz'></a>"
|
data/lib/TagoLine/version.rb
CHANGED