gamma 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f298e700e2a66f7cd5cf45b3d7f1904a0fa6ee83
4
- data.tar.gz: 3727dff9e1238cf0bbaf03386b120e5700165b20
3
+ metadata.gz: a6daad2cd209c7781968aea694ee4c0b86a4d796
4
+ data.tar.gz: ebb6cef818d153c6e4249a416ebce4d57d6951b6
5
5
  SHA512:
6
- metadata.gz: fc195be6dc26994490946b20101c925748199736bf94246df12ec28cc1e8e66e0d85e55b9635c25d071183996916713aa153a9e0c6eb28cde391f07db29f3071
7
- data.tar.gz: 8cee68931520d35f73a1c1c3d42236c40b39533a86c9ea28f62b4b143ecf59001efd46ce5412b9141f7bbb3b77ee5fe66595d5e5ee9c4964cb814a7eef164cde
6
+ metadata.gz: 24b9b8f0cccb276f155b664980c69b2bc3d02a3c91623f5f7d8f81a0d5835e3feb40be0096ad3f26b19460d2c07be0f1176d43e4ab2033a5db2dd9e1542dcea9
7
+ data.tar.gz: 9adddce8e0d8f67397cb2292b19b82a390181a793306c4219052f40fcaaab980e5f19422a1486a987a8687ed9c6e2a1576ef4df27b855aef536497ea3aaa8103
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gamma (0.1.4)
4
+ gamma (0.1.5)
5
5
  activesupport
6
6
  colorize (~> 0.8.1)
7
7
  mysql2
data/lib/gamma/hook.rb CHANGED
@@ -6,11 +6,10 @@ class Gamma::Hook
6
6
  fail "Hook Scripts Not Found. path: #{path}" unless File.exist?(path)
7
7
 
8
8
  result = record
9
- scripts = open(File.join(root_dir, script_path)).read
10
- eval(scripts)
9
+ require File.join(root_dir, script_path)
11
10
 
12
11
  begin
13
- klass_name = "Gamma::Hook::#{File.basename(path, ".*").camelize}"
12
+ klass_name = "#{File.basename(path, ".*").camelize}"
14
13
  instance = klass_name.constantize.new
15
14
  case self.hook_type.to_s
16
15
  when "column"
data/lib/gamma/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gamma
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinsuke Nishio