infrataster-plugin-mysql 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: 3358f9617d2dc9e4185e2fd347debd3d004198b6
4
- data.tar.gz: 6482facd21671b89c22f17020668c3b1a6f7de42
3
+ metadata.gz: b5a4288520b4b2b337c312caa515c813380028cb
4
+ data.tar.gz: a3349cb14b78bb88e4b3eaf74da4e690ec5410a8
5
5
  SHA512:
6
- metadata.gz: 833f8a1e035d6de4275ab8fba76ad5717ad6eaaeb15185e14e2a8d513d82d67382fc659bf2a8dc0a74a7d5bb518b0ebaf04d6610fc53602afceccb13496772b6
7
- data.tar.gz: 12e33cd9adbe0dcf789c47f5005bdcf27c71e66885af0f768ee583f7030760580410b59fb41ced5747949733699c0391572dd012042800eddd020dbcfa986f4b
6
+ metadata.gz: 2d282daef434f0011296e06116dc06012d0aca2c7ccb10075bdbbe2153ce0854b903ede1af6498a8aaaf05b404a4220a2937bdf45abaf18e7ad155dd26593eb4
7
+ data.tar.gz: f989282816c82bf5dfe068f556d34bb58e617b2a8d259fc76452c6032be316b47460f537754ddc546bb900d34955761c61d66787d4d2f2df1f814f927d9e162f
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # infrataster-plugin-mysql
2
+ [![Gem Version](https://badge.fury.io/rb/infrataster-plugin-mysql.png)](http://badge.fury.io/rb/infrataster-plugin-mysql)
2
3
 
3
4
  MySQL plugin for [Infrataster](https://github.com/ryotarai/infrataster)
4
5
 
@@ -21,7 +22,7 @@ describe server(:db) do
21
22
  row = results.find {|r| r['Variable_name'] == 'Uptime' }
22
23
  expect(row['Value'].to_i).to be > 0
23
24
 
24
- # `results` is a instance of `Mysql2::Result`
25
+ # `results` is an instance of `Mysql2::Result`
25
26
  # See: https://github.com/brianmario/mysql2
26
27
  end
27
28
  end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "infrataster-plugin-mysql"
4
- spec.version = '0.1.1'
4
+ spec.version = '0.1.2'
5
5
  spec.authors = ["Ryota Arai"]
6
6
  spec.email = ["ryota.arai@gmail.com"]
7
7
  spec.summary = %q{MySQL plugin for Infrataster}
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
14
14
  spec.require_paths = ["lib"]
15
15
 
16
- spec.add_runtime_dependency "infrataster", "~> 0.1.8"
16
+ spec.add_runtime_dependency "infrataster", "~> 0.2.6"
17
17
  spec.add_runtime_dependency "mysql2"
18
18
 
19
19
  spec.add_development_dependency "bundler", "~> 1.6"
@@ -1,3 +1,3 @@
1
1
  require 'infrataster/resources/mysql_query_resource'
2
2
  require 'infrataster/contexts/mysql_query_context'
3
-
3
+ require 'infrataster/helpers/mysql_resource_helper'
@@ -0,0 +1,12 @@
1
+ require 'rspec'
2
+ require 'infrataster/resources'
3
+
4
+ module Infrataster
5
+ module Helpers
6
+ module ResourceHelper
7
+ def mysql_query(*args)
8
+ Resources::MysqlQueryResource.new(*args)
9
+ end
10
+ end
11
+ end
12
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infrataster-plugin-mysql
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
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-17 00:00:00.000000000 Z
11
+ date: 2015-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: infrataster
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.8
19
+ version: 0.2.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.8
26
+ version: 0.2.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mysql2
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -96,6 +96,7 @@ files:
96
96
  - infrataster-plugin-mysql.gemspec
97
97
  - lib/infrataster-plugin-mysql.rb
98
98
  - lib/infrataster/contexts/mysql_query_context.rb
99
+ - lib/infrataster/helpers/mysql_resource_helper.rb
99
100
  - lib/infrataster/resources/mysql_query_resource.rb
100
101
  - spec/.gitignore
101
102
  - spec/Vagrantfile
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  version: '0'
125
126
  requirements: []
126
127
  rubyforge_project:
127
- rubygems_version: 2.2.2
128
+ rubygems_version: 2.4.5
128
129
  signing_key:
129
130
  specification_version: 4
130
131
  summary: MySQL plugin for Infrataster