conjoin 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conjoin/version.rb +1 -1
- metadata +2 -10
- data/bin/conjoin +0 -62
- data/bin/cutest +0 -17
- data/bin/rake +0 -14
- data/bin/rspec +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4864e5285456ab379ba7689eef15a771a057ad41
|
4
|
+
data.tar.gz: e0079afdf718f291a0861ee81bee3ef5cb5f43bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36ae62a233b0107b17f03dcadd35089d136c4dd128d239870d59ffc5232c18cbac926c8dfc268daa5679ba04c8db7e5882be5d96d181879e5da305ea33e4d632
|
7
|
+
data.tar.gz: a168304fda7548fbbb43fedaff559cef45f44578fd9b8a6a66ed0b5cbd3959b38a3ddd9fb354a2d3ee0de0247c5f78df8f4a3b3e774c1424cce6589d659bbd0e
|
data/lib/conjoin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
@@ -433,11 +433,7 @@ dependencies:
|
|
433
433
|
description: Still in development
|
434
434
|
email:
|
435
435
|
- cjlazell@gmail.com
|
436
|
-
executables:
|
437
|
-
- conjoin
|
438
|
-
- cutest
|
439
|
-
- rake
|
440
|
-
- rspec
|
436
|
+
executables: []
|
441
437
|
extensions: []
|
442
438
|
extra_rdoc_files: []
|
443
439
|
files:
|
@@ -446,10 +442,6 @@ files:
|
|
446
442
|
- LICENSE.txt
|
447
443
|
- README.md
|
448
444
|
- Rakefile
|
449
|
-
- bin/conjoin
|
450
|
-
- bin/cutest
|
451
|
-
- bin/rake
|
452
|
-
- bin/rspec
|
453
445
|
- conjoin.gemspec
|
454
446
|
- lib/conjoin.rb
|
455
447
|
- lib/conjoin/active_record.rb
|
data/bin/conjoin
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
if ARGV.empty?
|
4
|
-
puts "usage: conjoin [s (development)] [test]"
|
5
|
-
exit
|
6
|
-
end
|
7
|
-
|
8
|
-
ENV['RACK_ENV'] ||= 'development'
|
9
|
-
|
10
|
-
require 'rubygems'
|
11
|
-
require 'bundler/setup'
|
12
|
-
require 'clap'
|
13
|
-
|
14
|
-
module Conjoin
|
15
|
-
module CLI
|
16
|
-
extend self
|
17
|
-
|
18
|
-
VERSION = '0.0.1'
|
19
|
-
|
20
|
-
def version
|
21
|
-
say VERSION
|
22
|
-
end
|
23
|
-
|
24
|
-
def help(command)
|
25
|
-
# display help
|
26
|
-
end
|
27
|
-
|
28
|
-
def server env = 'development'
|
29
|
-
ENV['RACK_ENV'] = env
|
30
|
-
system("env $(cat .#{env}.env) mr-sparkle")
|
31
|
-
end
|
32
|
-
|
33
|
-
def console env = 'development'
|
34
|
-
ENV['CONJOIN_CONSOLE'] = 'true'
|
35
|
-
system("env $(cat .#{env}.env) pry -r ./config/console.rb")
|
36
|
-
end
|
37
|
-
|
38
|
-
def test env = 'test'
|
39
|
-
Dir["./test/**/*_test.rb"].each_with_index do |file, i|
|
40
|
-
if i != 0
|
41
|
-
print " \e[90mFile: #{file}"
|
42
|
-
else
|
43
|
-
print "\n \e[90mFile: #{file}"
|
44
|
-
end
|
45
|
-
system "env $(cat .#{env}.env) bin/cutest #{file}"
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
private
|
50
|
-
|
51
|
-
def root
|
52
|
-
File.expand_path(File.dirname(__FILE__))
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
Clap.run ARGV,
|
58
|
-
"s" => Conjoin::CLI.method(:server),
|
59
|
-
"c" => Conjoin::CLI.method(:console),
|
60
|
-
"test" => Conjoin::CLI.method(:test),
|
61
|
-
"-v" => Conjoin::CLI.method(:version),
|
62
|
-
"-h" => Conjoin::CLI.method(:help)
|
data/bin/cutest
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
ENV['RACK_ENV'] = 'test'
|
4
|
-
|
5
|
-
File.foreach Dir.getwd + "/.test.env" do |line|
|
6
|
-
key, value = line.split "="
|
7
|
-
ENV[key] = value.gsub('\n', '').strip
|
8
|
-
end
|
9
|
-
|
10
|
-
require 'rubygems'
|
11
|
-
require 'bundler/setup'
|
12
|
-
|
13
|
-
require "cuba/test"
|
14
|
-
require 'awesome_print'
|
15
|
-
require 'pry'
|
16
|
-
|
17
|
-
load Gem.bin_path('cutest', 'cutest')
|
data/bin/rake
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
ENV['RACK_ENV'] ||= 'development'
|
4
|
-
|
5
|
-
require 'rubygems'
|
6
|
-
require 'bundler/setup'
|
7
|
-
File.foreach ".#{ENV['RACK_ENV']}.env" do |line|
|
8
|
-
key, value = line.split "="
|
9
|
-
ENV[key] = value.gsub('\n', '').strip
|
10
|
-
end
|
11
|
-
|
12
|
-
Bundler.require (ENV['RACK_ENV'] || ENV['RAILS_ENV'])
|
13
|
-
|
14
|
-
load Gem.bin_path('rake', 'rake')
|
data/bin/rspec
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
ENV['RACK_ENV'] = 'test'
|
4
|
-
|
5
|
-
File.write '.env', '' unless File.exists? '.env'
|
6
|
-
File.foreach ".env" do |line|
|
7
|
-
key, value = line.split "="
|
8
|
-
ENV[key] = value.gsub('\n', '').strip
|
9
|
-
end
|
10
|
-
|
11
|
-
require 'rubygems'
|
12
|
-
require 'bundler/setup'
|
13
|
-
|
14
|
-
require_relative "../app.rb"
|
15
|
-
|
16
|
-
require 'rspec'
|
17
|
-
require "capybara/dsl"
|
18
|
-
require "rack/test"
|
19
|
-
require 'awesome_print'
|
20
|
-
require 'pry'
|
21
|
-
|
22
|
-
module RSpecMixin
|
23
|
-
include Rack::Test::Methods
|
24
|
-
def app() Conjoin end
|
25
|
-
end
|
26
|
-
|
27
|
-
Capybara.app = Conjoin
|
28
|
-
|
29
|
-
RSpec.configure do |c|
|
30
|
-
c.include Rack::Test::Methods
|
31
|
-
c.include Capybara::DSL
|
32
|
-
c.include RSpecMixin
|
33
|
-
end
|
34
|
-
|
35
|
-
load Gem.bin_path('rspec', 'rspec')
|