beeminder 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/beeminder.gemspec +5 -5
- data/lib/beeminder/goals.rb +9 -0
- data/lib/beeminder/user.rb +1 -1
- data/lib/beeminder/version.rb +1 -1
- metadata +17 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 93a795ea4da67f8f37467e4fba52f1ceaed16612f5ecccc8fb9bd11d0ea1a9ce
|
4
|
+
data.tar.gz: a9e21515c529f820ebf58a2278a3ca36e9b8a44eba59469366820c2f9e21763b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6269b4af7d7365c6d9e091f2734776af8402dcd5dfd852c19d63d8346417698d7785c526748b3283a40be1db68d7eb3739f588f1f520ec99f37c32382248d5fd
|
7
|
+
data.tar.gz: 9b313b7322ebc9dcc2876c141d6aec6bdf012ab016cdbc4e81361b98dcbba5a92efaa843dfe934f36ea58b3a6bc30378c11888f2dc4616203ec33a7691b84daa
|
data/beeminder.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'beeminder/version'
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "beeminder"
|
8
8
|
gem.version = Beeminder::VERSION
|
9
|
-
gem.authors = ["muflax"
|
10
|
-
gem.email = ["
|
9
|
+
gem.authors = ["muflax"]
|
10
|
+
gem.email = ["mail@muflax.com"]
|
11
11
|
gem.description = "Convenient access to Beeminder's API."
|
12
12
|
gem.summary = "access Beeminder API"
|
13
13
|
gem.homepage = "https://github.com/beeminder/beeminder-gem"
|
@@ -16,10 +16,10 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.require_paths = ["lib"]
|
18
18
|
|
19
|
-
gem.add_dependency 'activesupport', ['>= 3.2', '<
|
19
|
+
gem.add_dependency 'activesupport', ['>= 3.2', '< 7']
|
20
20
|
gem.add_dependency 'chronic', '~> 0.7'
|
21
|
-
gem.add_dependency 'json'
|
21
|
+
gem.add_dependency 'json'
|
22
22
|
gem.add_dependency 'highline', '~> 1.6'
|
23
23
|
gem.add_dependency 'optimist', '~> 3'
|
24
|
-
gem.add_dependency 'tzinfo'
|
24
|
+
gem.add_dependency 'tzinfo'
|
25
25
|
end
|
data/lib/beeminder/goals.rb
CHANGED
@@ -62,6 +62,15 @@ module Beeminder
|
|
62
62
|
|
63
63
|
# @return [Array<Integer, Float, Float>] All road settings over time
|
64
64
|
attr_accessor :roadall
|
65
|
+
|
66
|
+
# @return [true|false] Whether the goal is currently frozen and therefore must be restarted before continuing to accept data.
|
67
|
+
attr_reader :frozen
|
68
|
+
|
69
|
+
# @return [Numeric] Where you are with respect to the yellow brick road (2 or more = above the road, 1 = top lane, -1 = bottom lane, -2 or less = below the road).
|
70
|
+
attr_reader :lane
|
71
|
+
|
72
|
+
# @return [Numeric] Good side of the road. I.e., the side of the road (+1/-1 = above/below) that makes you say “yay”.
|
73
|
+
attr_reader :yaw
|
65
74
|
|
66
75
|
def initialize user, name_or_info
|
67
76
|
@user = user
|
data/lib/beeminder/user.rb
CHANGED
@@ -168,7 +168,7 @@ module Beeminder
|
|
168
168
|
http = Net::HTTP.new(url.host, url.port)
|
169
169
|
http.read_timeout = 8640
|
170
170
|
http.use_ssl = true
|
171
|
-
http.verify_mode = OpenSSL::SSL::
|
171
|
+
http.verify_mode = OpenSSL::SSL::VERIFY_PEER # was VERIFY_NONE for some reason
|
172
172
|
|
173
173
|
# FIXME Sanity check for wrong timestamp. Source of bug unknown, but at least we can prevent screwing up someone's graph.
|
174
174
|
unless data["timestamp"].nil?
|
data/lib/beeminder/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beeminder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- muflax
|
8
|
-
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
@@ -20,7 +19,7 @@ dependencies:
|
|
20
19
|
version: '3.2'
|
21
20
|
- - "<"
|
22
21
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
22
|
+
version: '7'
|
24
23
|
type: :runtime
|
25
24
|
prerelease: false
|
26
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +29,7 @@ dependencies:
|
|
30
29
|
version: '3.2'
|
31
30
|
- - "<"
|
32
31
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
32
|
+
version: '7'
|
34
33
|
- !ruby/object:Gem::Dependency
|
35
34
|
name: chronic
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -49,16 +48,16 @@ dependencies:
|
|
49
48
|
name: json
|
50
49
|
requirement: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
|
-
- - "
|
51
|
+
- - ">="
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
53
|
+
version: '0'
|
55
54
|
type: :runtime
|
56
55
|
prerelease: false
|
57
56
|
version_requirements: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
|
-
- - "
|
58
|
+
- - ">="
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
60
|
+
version: '0'
|
62
61
|
- !ruby/object:Gem::Dependency
|
63
62
|
name: highline
|
64
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,19 +90,19 @@ dependencies:
|
|
91
90
|
name: tzinfo
|
92
91
|
requirement: !ruby/object:Gem::Requirement
|
93
92
|
requirements:
|
94
|
-
- - "
|
93
|
+
- - ">="
|
95
94
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
95
|
+
version: '0'
|
97
96
|
type: :runtime
|
98
97
|
prerelease: false
|
99
98
|
version_requirements: !ruby/object:Gem::Requirement
|
100
99
|
requirements:
|
101
|
-
- - "
|
100
|
+
- - ">="
|
102
101
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
102
|
+
version: '0'
|
104
103
|
description: Convenient access to Beeminder's API.
|
105
104
|
email:
|
106
|
-
-
|
105
|
+
- mail@muflax.com
|
107
106
|
executables:
|
108
107
|
- beemind
|
109
108
|
extensions: []
|
@@ -125,7 +124,7 @@ files:
|
|
125
124
|
homepage: https://github.com/beeminder/beeminder-gem
|
126
125
|
licenses: []
|
127
126
|
metadata: {}
|
128
|
-
post_install_message:
|
127
|
+
post_install_message:
|
129
128
|
rdoc_options: []
|
130
129
|
require_paths:
|
131
130
|
- lib
|
@@ -140,9 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
139
|
- !ruby/object:Gem::Version
|
141
140
|
version: '0'
|
142
141
|
requirements: []
|
143
|
-
|
144
|
-
|
145
|
-
signing_key:
|
142
|
+
rubygems_version: 3.2.32
|
143
|
+
signing_key:
|
146
144
|
specification_version: 4
|
147
145
|
summary: access Beeminder API
|
148
146
|
test_files: []
|