leafy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ea5d309805e75b317e75e66de8183872b454d8cc
4
- data.tar.gz: 707187c9ae8bd1d7f52bcf85505d2b99a1e83028
2
+ SHA256:
3
+ metadata.gz: 1b49abac340e348e0156101514c137676b3d991421c131aa1e17e355569c9100
4
+ data.tar.gz: 783a600f3f1e2a0f5342e8b089a485e8db4b9a895e7181808b8f4c15d454688b
5
5
  SHA512:
6
- metadata.gz: 8b7dd8bc5d779f94fc020d57070ac83ded5fab4277da7675984fe4564c82782b9cde93f1a74f82455a42da53833a340781dad6b745bd452ff6e1ece798aa7bc9
7
- data.tar.gz: cabb53076eca1976a4f8bfc6f66bf4f22bff55fe895c77af9b4a0056ba1fdb75b0ce8495cb196ce3ad3b1a80bddf5ebbd435b02339c7e3efce3bcfdc4e4c7d80
6
+ metadata.gz: 5066ea41848d6382a7c8265ebe3782a3c4dde5d8bccf7318f0d797c176e2fc17aa85212d42d1725f092eafe192545aff7ef367d553356f66b82980ff24698403
7
+ data.tar.gz: 3e4122b4e40c43ddb0780d5b6d0a009bfec9a953fd81780cec701655be8ffc03e743f8be4586d7800051148322ef6324765ad0d72a20a4939c0accb630b52224
metadata CHANGED
@@ -1,90 +1,26 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leafy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - Koichi Tanaka
7
+ - mkristian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-01 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: mechanize
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.5'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.5'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- description: Post to leafy.
70
- email:
71
- - k.tanaka@everyleaf.com
11
+ date: 2018-05-28 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: old versions of leafy are obsolete
14
+ email: meier.kristian@gmail.com
72
15
  executables: []
73
16
  extensions: []
74
17
  extra_rdoc_files: []
75
- files:
76
- - ".gitignore"
77
- - Gemfile
78
- - LICENSE.txt
79
- - README.md
80
- - Rakefile
81
- - leafy.gemspec
82
- - lib/leafy.rb
83
- - lib/leafy/version.rb
84
- homepage: ''
18
+ files: []
19
+ homepage: https://rubygems.org/gems/example
85
20
  licenses:
86
21
  - MIT
87
- metadata: {}
22
+ metadata:
23
+ source_code_uri: https://github.com/example/example
88
24
  post_install_message:
89
25
  rdoc_options: []
90
26
  require_paths:
@@ -101,8 +37,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
37
  version: '0'
102
38
  requirements: []
103
39
  rubyforge_project:
104
- rubygems_version: 2.2.0
40
+ rubygems_version: 2.7.6
105
41
  signing_key:
106
42
  specification_version: 4
107
- summary: Post to leafy.
43
+ summary: old versions of leafy are obsolete
108
44
  test_files: []
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in leafy.gemspec
4
- gemspec
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2014 Koichi Tanaka
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md DELETED
@@ -1,36 +0,0 @@
1
- # Leafy
2
-
3
- Post to leafy
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'leafy'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install leafy
18
-
19
- ## Usage
20
-
21
- use ruby 2.0+
22
-
23
- ```rb
24
- require 'leafy'
25
-
26
- client = Leafy::Client.new(room: 'sample', email: 'sample@sample.com', password: 'password')
27
- client.post! "sample"
28
- ```
29
-
30
- ## Contributing
31
-
32
- 1. Fork it ( http://github.com/<my-github-username>/leafy/fork )
33
- 2. Create your feature branch (`git checkout -b my-new-feature`)
34
- 3. Commit your changes (`git commit -am 'Add some feature'`)
35
- 4. Push to the branch (`git push origin my-new-feature`)
36
- 5. Create new Pull Request
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require "bundler/gem_tasks"
data/leafy.gemspec DELETED
@@ -1,26 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'leafy/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "leafy"
8
- spec.version = Leafy::VERSION
9
- spec.authors = ["Koichi Tanaka"]
10
- spec.email = ["k.tanaka@everyleaf.com"]
11
- spec.summary = %q{Post to leafy.}
12
- spec.description = %q{Post to leafy.}
13
- spec.homepage = ""
14
- spec.license = "MIT"
15
-
16
- spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_dependency 'mechanize'
22
-
23
- spec.add_development_dependency "bundler", "~> 1.5"
24
- spec.add_development_dependency "rake"
25
- spec.add_development_dependency "pry"
26
- end
data/lib/leafy.rb DELETED
@@ -1,32 +0,0 @@
1
- require "leafy/version"
2
- require 'mechanize'
3
-
4
- module Leafy
5
- class Client
6
- def initialize(room: '', domain: 'leafy.in', email: '', password: '')
7
- @login_url = "https://#{room}.#{domain}/accounts/sign_in"
8
- @email = email
9
- @password = password
10
- @agent = Mechanize.new
11
- end
12
-
13
- def post!(message)
14
- main_page = login!(@email, @password)
15
- form = main_page.form(id: 'new_status')
16
- form.field_with(name: 'status[text]').value = message
17
- @agent.submit(form)
18
-
19
- message
20
- end
21
-
22
- private
23
-
24
- def login!(email, password)
25
- logint_page = @agent.get(@login_url)
26
- form = logint_page.form
27
- form.field_with(name: 'user[email]').value = email
28
- form.field_with(name: 'user[password]').value = password
29
- @agent.submit(form)
30
- end
31
- end
32
- end
data/lib/leafy/version.rb DELETED
@@ -1,3 +0,0 @@
1
- module Leafy
2
- VERSION = "0.0.2"
3
- end