study_line 0.1.4 → 0.1.6

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
2
  SHA256:
3
- metadata.gz: 728332be49d57c6226af19dc1df9fb88912b29e5b68712e809d2ac4d9ffd2033
4
- data.tar.gz: 86af8ab080876ac7dcd7d5930ec2f0452e77cce6eb8965a09a9813bdac3f606e
3
+ metadata.gz: e834202206c37e43391e3b620248580eca4c9f470987a963813c6bf1183c631f
4
+ data.tar.gz: 62bb6df39fbe100698b8943f116bef541364ba0d8fc97cd2d6b83aa535dd1a9d
5
5
  SHA512:
6
- metadata.gz: c37b75f1badeb10885b3ceffa8e75ace5a0b1d9ecec5d61308ee575e469b3ddda4074d34c82592aab7080b734721c4faec6c33138e7507940e8963d48eef3019
7
- data.tar.gz: 1bdc73053e0a38ace17b1f93a6cc03aeac3574918bcd3d1d7ca42acf02a320590f13def6e105ac829a51e8b90cfc8464869f3a0170542280ddf078cca6d09c46
6
+ metadata.gz: 2ab22684086c77ad1df2a8fbb1922acd4e4b841b6a7769e40701564c62c8e871e6983ab4356d72c45d1b0cbc47ac21842e46bad388b12b80e4b5e4e2c3a32127
7
+ data.tar.gz: f89556d3931b39bdfb5001136171e8495bd255a2c6c54fe07a2d4d217e4454a24eb7cc3edb1b4b1986fd2c38e810bd7b700adc36743d06b2ac26306578a90cf3
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StudyLine
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.6"
5
5
  end
data/lib/study_line.rb CHANGED
@@ -7,8 +7,8 @@ module StudyLine
7
7
  class CLI < Thor
8
8
  class Sender
9
9
  include HTTParty
10
- # BASE_URI = 'https://studyline-cc21ae1829fc.herokuapp.com/dashboard/'
11
- BASE_URI = 'http://localhost:3000/dashboard'
10
+ BASE_URI = 'https://studyline-cc21ae1829fc.herokuapp.com/dashboard/'
11
+ # BASE_URI = 'http://localhost:3000/dashboard'
12
12
  end
13
13
  desc "start", "Record the start time of study"
14
14
  method_option :tag, aliases: "-t", desc: "Tag for the study session"
@@ -40,7 +40,7 @@ module StudyLine
40
40
  if response.success?
41
41
  puts "Study session finished successfully."
42
42
  else
43
- error_message = response.parsed_response['error'] || 'Unknown error'
43
+ error_message = response.parsed_response['message'] || 'Unknown error'
44
44
  puts "Error: #{error_message}"
45
45
  end
46
46
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: study_line
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - kentaro0215
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-06 00:00:00.000000000 Z
11
+ date: 2023-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor