framework 0.0.7 → 0.0.8

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: fce607f0a6316cb93d48a18d25184cb8f5df9b4b
4
- data.tar.gz: 8a1030efe91f69b6f90fd1866a5aaa410f27988e
3
+ metadata.gz: c1020230e0f18fcb774b81f80b0736173b6ceea2
4
+ data.tar.gz: 92e7a41a5b23f374f33dffbb072d7127916e5ef6
5
5
  SHA512:
6
- metadata.gz: 92b4b1044ebd0e8d2ffa824f7cd3b8306594ee1a840e18ae2605d1a408ce5fb6e3ff8b3d4cbcc751e8e08bd939670f3799845bd86e92f937153a20bd2d0ccf60
7
- data.tar.gz: 2c62e4cff803fba1b76b8051e10bcb744b5656d383229c575a39801556ddb0a8b9c3e5850f30d3bc385c4f00e50f3439bdf028f42b33af29d8f1e6cc59f4cb12
6
+ metadata.gz: de8b6cd9648e344e5bbabc66b9202fee9afb65e739e4426cd66ce48e505102620bc6b390222fb7af1a972a5ac6e44f94d385651a1b3edb83f27ebdf0ca7de1ab
7
+ data.tar.gz: 97cb7fb535d516e019da0f6f4ffed70aa484d5b81dd9d7ce0ad98b1aa7a86ddc1a9d9fc667731e3de11acaf0df1631c8c4742a1ea14aea732c10acfcb28f82bb
@@ -1,21 +1,13 @@
1
- desc "Runs irb console and initializes the application"
1
+ desc 'Runs irb console and initializes the application'
2
2
  task :console, :env do |_, args|
3
- require 'irb'
4
-
5
- unless env = ENV['FRAMEWORK_ENV'] || ENV['RAILS_ENV']
6
- env = args[:env] || Framework::DEFAULT_ENV
7
- end
8
-
3
+ env = ENV['FRAMEWORK_ENV'] ||= args[:env] || ENV['RAILS_ENV']
9
4
  system "mkdir -p #{Dir.pwd}/db/#{env}"
10
5
 
11
- Framework::Application.new(env: env) do |app|
12
- app.init!
13
- app.hint("Use `Framework.app` variable to deal with application API")
14
-
15
- require "awesome_print"
16
- AwesomePrint.irb!
17
- end
6
+ require 'irb'
7
+ require File.expand_path('config/environment')
8
+ require 'awesome_print'
18
9
 
10
+ AwesomePrint.irb!
19
11
  ARGV.clear
20
12
  IRB.start
21
13
  end
@@ -1,3 +1,3 @@
1
1
  module Framework
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergei Nikolaevich Zinin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-14 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord