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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84b77e313629458a8bb8fb602b6990756568bb6cade01d450941acb8d6452b04
4
- data.tar.gz: a9d127efb4eccfe7ac93cb4c2f6e183b25fd4466bb43f15b9f4673e4ee0614fb
3
+ metadata.gz: ac4147f91359f056a8937988445d5f48a7b0e914950eeff11544f0cf601e9b90
4
+ data.tar.gz: 7413ece6ca0f89195ce36b6c6eb6c10ce7474f7b3e92aee1f15cc8b56d94dc31
5
5
  SHA512:
6
- metadata.gz: 9a83c30bbde826ff488554452a5ffbc85b36ca824fec6e10defb82e83c5da216169521a4fb0f8de066118c284e7d6d768b13a72f3a4aa44c206bcf8ee30b1f1c
7
- data.tar.gz: ac5b318f18b5613b0e4fc3b28fcd50739b0bbe4f66fd481fde1a7ba61bd05c9143aca11b6bb8ec97399015c576906e195ac593cb6dabecbd7a3a59b30b783552
6
+ metadata.gz: 2ee6d7421fdb7e9914059579e94ebf3c562164589827dcc372e1b3dc3e7c0e97561d86ee7ff4276b24f14faa496c3a81770ff8c7744d9e8ccfaefdceb54a7fb3
7
+ data.tar.gz: f9b7564236065709d42f813cd2f5dfc0e30fb15fb4b9601b5d4ddf5b3cb67d39dd56858afd16c311444e38d3cb8e25083c3002194de311d559d670e1db790b88
data/README.md CHANGED
@@ -1,39 +1,14 @@
1
- # TagoLine
2
-
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- 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/TagoLine`. To experiment with that code, run `bin/console` for an interactive prompt.
6
-
7
- ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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
+ ```
@@ -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>"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TagoLine
4
- VERSION = "0.1.4.7"
4
+ VERSION = "0.1.4.8"
5
5
  CALLBACK_URL = ENV["LINE_CALLBACK_URL"]
6
6
  CHANNEL_ID = ENV["LINE_CHANNEL_ID"]
7
7
  CHANNEL_SECRET = ENV["LINE_CHANNEL_SECRET"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TagoLine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.7
4
+ version: 0.1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - manatago