mode 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -1
  3. data/lib/mode/version.rb +1 -1
  4. data/mode.gemspec +2 -2
  5. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbe52a832cfc20b9a67129bed9b6feeb72213589
4
- data.tar.gz: 8f6dea018950f9a2e4f91610ec4aa5fe48ab57f5
3
+ metadata.gz: ccc08c1aa6ec17830e31c411b597b13913e59958
4
+ data.tar.gz: 9013adb778e889889b2dfd6b6cfc22ca7e80defb
5
5
  SHA512:
6
- metadata.gz: 5e38be653fb2cca1e15d87914db8c293d8f105ce264017ba9afa539878fc5f3996c2d321a5ba82c261c674d5a8544f4bd58c5f422bb609cc6e1dad343eb4b43d
7
- data.tar.gz: 50c6229a73c04f74aad4645a9a267a8d4054e1e338863df09c0c0d6b8cb47627d4170a9bd7379423448a8ecdf6ada2d4602b9873caaa423b36576a942ac23520
6
+ metadata.gz: 27bff2a7069156691e9140830b30baf29354a51dfea76dacacec93cff487cde3e6a892bdcbfd645bdf7bf15e7ca6f098c5be44c4567948db47b025ca64a2ee9e
7
+ data.tar.gz: 53c29d8e884d7419d68115d049f5d9a59c98b540cf85508ec835bde68bc2b47b04cbbc3071d8a712328ad19e7c79935f04f36242e611ba2e087094c54fa49f0c
data/README.md CHANGED
@@ -5,4 +5,91 @@ This gem provides command line tools for interacting with the Mode Analytics API
5
5
  [![Build Status](https://travis-ci.org/mode/mode-ruby.png?branch=v0.0.17)](https://travis-ci.org/mode/mode-ruby)
6
6
  [![Code Climate](https://codeclimate.com/repos/52a90897f3ea0044b10034de/badges/68f57393128c9c3fe2c5/gpa.png)](https://codeclimate.com/repos/52a90897f3ea0044b10034de/feed)
7
7
 
8
- To learn how to install and use this gem please visit [Mode Analytics Help](http://help.modeanalytics.com)
8
+ To learn how to install and use this gem please visit [Mode Analytics Help](http://help.modeanalytics.com)
9
+
10
+ ## Installing Mode
11
+
12
+ tl;dr
13
+
14
+ ```
15
+ \curl -sSL https://get.rvm.io | bash -s stable && source ~/.rvm/scripts/rvm
16
+ rvm install jruby-1.7.9 && rvm default use jruby-1.7.9@mode --create
17
+ gem install mode --no-ri --no-rdoc
18
+ ```
19
+
20
+ #### Step-by-step
21
+
22
+ Install RVM
23
+
24
+ ```\curl -sSL https://get.rvm.io | bash -s stable && source ~/.rvm/scripts/rvm```
25
+
26
+ Install JRuby
27
+
28
+ ```rvm install jruby-1.7.9 && rvm default use jruby-1.7.9@mode --create```
29
+
30
+ Install Mode
31
+
32
+ ```
33
+ gem install mode --no-ri --no-rdoc
34
+ ```
35
+
36
+ ## Configuring Mode
37
+
38
+ ```mode login```
39
+
40
+ More info here:
41
+
42
+ http://help.modeanalytics.com/connecting-data-sources/logging-in.html
43
+
44
+ Adding Data Sources
45
+
46
+ Mode's configuration lives at ~/.mode/config.yml. Logging in will configure some pieces of this file and adding data sources to it is easy. Here's an example of what your file might look like:
47
+
48
+ ```
49
+ username: besquared
50
+
51
+ access_token:
52
+ token: [API TOKEN]
53
+ password: [PASSWORD]
54
+
55
+ environment: production
56
+
57
+ data_sources:
58
+ mysql-prod:
59
+ adapter: jdbc:mysql
60
+ host: [HOST]
61
+ username: readonly
62
+ password: [PASSWORD]
63
+ ```
64
+
65
+ Here's a bit more documentation about the overall configuration
66
+
67
+ http://help.modeanalytics.com/connecting-data-sources/mode-configuration.html
68
+
69
+ Verify
70
+
71
+ ```mode connect verify```
72
+
73
+ Start
74
+
75
+ ```mode connect restart```
76
+
77
+ ## Appendix: Installing Java
78
+
79
+ ### Ubuntu
80
+
81
+ ```
82
+ sudo apt-get update
83
+ sudo apt-get install openjdk-7-jdk | yes
84
+ ```
85
+
86
+ ### Redhat
87
+
88
+ ```
89
+ sudo yum check-update
90
+ sudo yum install java-1.7.0-openjdk
91
+ ```
92
+
93
+ ### Other
94
+
95
+ https://jdk7.java.net/download.html
@@ -1,3 +1,3 @@
1
1
  module Mode
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
@@ -22,9 +22,9 @@ Gem::Specification.new do |spec|
22
22
  spec.add_runtime_dependency "thor", '~> 0.19.1'
23
23
 
24
24
  # HTTP
25
- spec.add_runtime_dependency "faraday", '0.8.9'
25
+ spec.add_runtime_dependency "faraday", '0.9.0'
26
26
  spec.add_runtime_dependency "multipart-post", '1.2.0'
27
- spec.add_runtime_dependency "faraday_middleware", '0.9.0'
27
+ spec.add_runtime_dependency "faraday_middleware", '0.9.1'
28
28
  spec.add_runtime_dependency "uri_template", '0.7.0'
29
29
 
30
30
  # Connectivity
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mode Analytics
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-04 00:00:00.000000000 Z
11
+ date: 2014-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -30,12 +30,12 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.8.9
33
+ version: 0.9.0
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
36
  - - '='
37
37
  - !ruby/object:Gem::Version
38
- version: 0.8.9
38
+ version: 0.9.0
39
39
  prerelease: false
40
40
  type: :runtime
41
41
  - !ruby/object:Gem::Dependency
@@ -58,12 +58,12 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.9.0
61
+ version: 0.9.1
62
62
  requirement: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - '='
65
65
  - !ruby/object:Gem::Version
66
- version: 0.9.0
66
+ version: 0.9.1
67
67
  prerelease: false
68
68
  type: :runtime
69
69
  - !ruby/object:Gem::Dependency