spike-ruby 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 1f28c881bd7c898bec3e5042fd33ad5454cf74d0
4
- data.tar.gz: fd21a35fede18e45eadd23779372c3ba7cfda8e4
3
+ metadata.gz: 473a5eb1a350819008d301fa68c4aeaeda4b4c03
4
+ data.tar.gz: 4840084cb592f28bfa8aa4e01f5f267b649dbcd5
5
5
  SHA512:
6
- metadata.gz: 1fbbce6afc0d550f64ed4638586dfb6eed26c4336d33b18d27ea0cea9cfc1fad5b8c6c600d8d649ac52170cc1214651063558f4cebebedd07498c7a402b1348a
7
- data.tar.gz: 9aa45648d77220339e4716b00c010e7474cb5984c7d0aa9ec00816fc01f38c8996301141dea2de2f7d266610609918d8940791af1e24f3c1e4aa64deb4c7263d
6
+ metadata.gz: 4e7da6981f5863e845a5408641d95442aeb79b163e8f316f9b16050d921cedab60e32761fc6a3457a44ab9a881563789ada11d4c4671f323e5723f5816345040
7
+ data.tar.gz: e007ef02a376f6bea8083cf2168f50727338afe70f1955fd8296e5e0612d4a8ba6d452f288375779b6fecbb107407ff65298c4289d3a943953680de57228819c
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  /.bundle/
2
+ /vendor/
2
3
  /Gemfile.lock
3
4
  /.yardoc
4
5
  /_yardoc/
data/.rubocop.yml CHANGED
@@ -9,7 +9,7 @@ LineLength:
9
9
  Max: 120
10
10
  ClassAndModuleChildren:
11
11
  EnforcedStyle: compact
12
- Style/MethodLength:
12
+ Metrics/MethodLength:
13
13
  Max: 20
14
14
  Style/PredicateName:
15
15
  Enabled: false
@@ -18,4 +18,5 @@ AllCops:
18
18
  TargetRubyVersion: 2.2
19
19
  Exclude:
20
20
  - 'bin/test.rb'
21
+ - 'vendor/**/*'
21
22
 
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'spike'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/lib/spike.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'spike/version'
1
2
  require 'spike/error'
2
3
  require 'spike/object'
3
4
  require 'spike/charge'
@@ -8,7 +9,6 @@ require 'curb'
8
9
  # Main class
9
10
  #
10
11
  class Spike
11
- VERSION = '0.1.1'.freeze
12
12
  API_BASE = 'https://api.spike.cc'.freeze
13
13
  API_VERSION = '/v1'.freeze
14
14
  API_URL = API_BASE + API_VERSION
data/lib/spike/version.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  class Spike
2
+ VERSION = '0.1.2'.freeze
2
3
  end
data/spec/spec_helper.rb CHANGED
@@ -10,7 +10,7 @@ SimpleCov.formatters = [
10
10
  SimpleCov::Formatter::HTMLFormatter
11
11
  ]
12
12
 
13
- SimpleCov.adapters.define 'spike' do
13
+ SimpleCov.profiles.define 'spike' do
14
14
  add_filter '/spec/'
15
15
  end
16
16
  SimpleCov.start 'spike'
data/spike-ruby.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'spike'
4
+ require 'spike/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'spike-ruby'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spike-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AKAMATSU Yuki
@@ -142,6 +142,8 @@ email:
142
142
  - y.akamatsu@ukstudio.jp
143
143
  - matsubokkuri@gmail.com
144
144
  executables:
145
+ - console
146
+ - setup
145
147
  - test.rb
146
148
  extensions: []
147
149
  extra_rdoc_files: []
@@ -153,6 +155,8 @@ files:
153
155
  - LICENSE.txt
154
156
  - README.md
155
157
  - Rakefile
158
+ - bin/console
159
+ - bin/setup
156
160
  - bin/test.rb
157
161
  - circle.yml
158
162
  - lib/spike.rb