rails_lazy_commands 0.0.1.pre

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rails_lazy_commands.rb +34 -0
  3. metadata +58 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7e6af0188232dcbd2757f32c890bb9675d599ddc
4
+ data.tar.gz: dbd58c370a534e4775cc4948bd97c6d248424eed
5
+ SHA512:
6
+ metadata.gz: c891a5842c777d0d095bdc750bb3c4207f1de942f82b49be116bac9bc8eeb381fc95f2c24a5aab513f85e1a37642170095088ceaad16a02dfbecf216ef80dcfb
7
+ data.tar.gz: 76fdca08da5a3bb88ce44428769cb0ebfac43319c3a99bd9486f0a42f52ad37050ef0239df3e93903b35660a89d3c2062e70aa1a48676511e5f785e387714218
@@ -0,0 +1,34 @@
1
+ module RailsLazyCommands
2
+
3
+ def log(message=nil, args={})
4
+ Rails.logger.debug(print_message(message, args))
5
+ end
6
+
7
+ def clear
8
+ Rails.cache.clear
9
+ end
10
+
11
+ def today
12
+ Date.current
13
+ end
14
+
15
+ def now
16
+ Time.current
17
+ end
18
+
19
+ private
20
+
21
+ def print_message(message, args)
22
+ "#{ args.fetch(:evidence, '=================') } #{message || 'log'}"
23
+ end
24
+
25
+
26
+ end
27
+
28
+ module Kernel
29
+ include RailsLazyCommands
30
+ end
31
+
32
+ class Object
33
+ include Kernel
34
+ end
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_lazy_commands
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.pre
5
+ platform: ruby
6
+ authors:
7
+ - Mirco Frison
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0
27
+ description: Shorcuts for some RoR commands, useful in development and debug
28
+ email: free3zone@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/rails_lazy_commands.rb
34
+ homepage: http://rubygems.org/gems/rails_lazy_commands
35
+ licenses:
36
+ - MIT
37
+ metadata: {}
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.9.3
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">"
50
+ - !ruby/object:Gem::Version
51
+ version: 1.3.1
52
+ requirements: []
53
+ rubyforge_project:
54
+ rubygems_version: 2.2.2
55
+ signing_key:
56
+ specification_version: 4
57
+ summary: Rails Lazy Commands!
58
+ test_files: []