lycra 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/lycra.rb +15 -0
- data/lib/lycra/railtie.rb +9 -0
- data/lib/lycra/version.rb +14 -0
- data/spec/spec_helper.rb +84 -0
- metadata +91 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4f6b763be6e3d625f7ce696812f062ea5cb4f872
|
4
|
+
data.tar.gz: 801867731e2be4d690668c6268358ce26369ae37
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5cbb169b8c12801e70c6ef6bdf526b90c08044f08279862a08bf835deb31f347c76f041e81ebd138ac45f28842dc331ff39b4ada881bc553fd563ffccb5bf0c4
|
7
|
+
data.tar.gz: c640a28436b4039b3e01a611e9ba5c5ada95cb15d29a8510fd2a67f6545038f7c2abfcf63b7a5ea4171b137aaa9e197cc541e9be0869e7571f7892475023c694
|
data/lib/lycra.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'canfig'
|
2
|
+
require 'lycra/railtie' if defined?(Rails)
|
3
|
+
|
4
|
+
module Lycra
|
5
|
+
include Canfig::Module
|
6
|
+
|
7
|
+
configure do |config|
|
8
|
+
config.elastic_host = nil # the elasticsearch host to use
|
9
|
+
config.logger = nil # defaults to STDOUT but will use Rails.logger in a rails environment
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.logger
|
13
|
+
configuration.logger || Logger.new(STDOUT)
|
14
|
+
end
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
require 'lycra'
|
2
|
+
require 'rspec'
|
3
|
+
#require 'vcr'
|
4
|
+
require 'coveralls'
|
5
|
+
Coveralls.wear!
|
6
|
+
|
7
|
+
#Dir[File.join(File.dirname(__FILE__), '..', "spec/support/**/*.rb")].each { |f| require f }
|
8
|
+
|
9
|
+
#VCR.configure do |config|
|
10
|
+
# config.cassette_library_dir = "spec/cassettes"
|
11
|
+
# config.hook_into :webmock
|
12
|
+
#end
|
13
|
+
|
14
|
+
RSpec.configure do |config|
|
15
|
+
#config.before(:suite) do
|
16
|
+
# ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
|
17
|
+
# capture_stdout { load "db/schema.rb" }
|
18
|
+
# load 'support/models.rb'
|
19
|
+
#end
|
20
|
+
|
21
|
+
# rspec-expectations config goes here. You can use an alternate
|
22
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
23
|
+
# assertions if you prefer.
|
24
|
+
config.expect_with :rspec do |expectations|
|
25
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
26
|
+
# and `failure_message` of custom matchers include text for helper methods
|
27
|
+
# defined using `chain`, e.g.:
|
28
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
29
|
+
# # => "be bigger than 2 and smaller than 4"
|
30
|
+
# ...rather than:
|
31
|
+
# # => "be bigger than 2"
|
32
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
33
|
+
end
|
34
|
+
|
35
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
36
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
37
|
+
config.mock_with :rspec do |mocks|
|
38
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
39
|
+
# a real object. This is generally recommended, and will default to
|
40
|
+
# `true` in RSpec 4.
|
41
|
+
mocks.verify_partial_doubles = true
|
42
|
+
end
|
43
|
+
|
44
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
45
|
+
# file, and it's useful to allow more verbose output when running an
|
46
|
+
# individual spec file.
|
47
|
+
if config.files_to_run.one?
|
48
|
+
# Use the documentation formatter for detailed output,
|
49
|
+
# unless a formatter has already been configured
|
50
|
+
# (e.g. via a command-line flag).
|
51
|
+
config.default_formatter = 'doc'
|
52
|
+
end
|
53
|
+
|
54
|
+
# Limits the available syntax to the non-monkey patched syntax that is recommended.
|
55
|
+
# For more details, see:
|
56
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
57
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
58
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
59
|
+
config.disable_monkey_patching!
|
60
|
+
|
61
|
+
# Run specs in random order to surface order dependencies. If you find an
|
62
|
+
# order dependency and want to debug it, you can fix the order by providing
|
63
|
+
# the seed, which is printed after each run.
|
64
|
+
# --seed 1234
|
65
|
+
config.order = :random
|
66
|
+
|
67
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
68
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
69
|
+
# test failures related to randomization by passing the same `--seed` value
|
70
|
+
# as the one that triggered the failure.
|
71
|
+
Kernel.srand config.seed
|
72
|
+
|
73
|
+
# Print the 10 slowest examples and example groups at the
|
74
|
+
# end of the spec run, to help surface which specs are running
|
75
|
+
# particularly slow.
|
76
|
+
#config.profile_examples = 10
|
77
|
+
|
78
|
+
# These two settings work together to allow you to limit a spec run
|
79
|
+
# to individual examples or groups you care about by tagging them with
|
80
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
81
|
+
# get run.
|
82
|
+
#config.filter_run :focus
|
83
|
+
#config.run_all_when_everything_filtered = true
|
84
|
+
end
|
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lycra
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mark Rebec
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-02-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: canfig
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Open source business intelligence based on elasticsearch queries, inspired
|
56
|
+
by https://github.com/ankane/blazer
|
57
|
+
email:
|
58
|
+
- mark@markrebec.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- lib/lycra.rb
|
64
|
+
- lib/lycra/railtie.rb
|
65
|
+
- lib/lycra/version.rb
|
66
|
+
- spec/spec_helper.rb
|
67
|
+
homepage: http://github.com/markrebec/lycra
|
68
|
+
licenses: []
|
69
|
+
metadata: {}
|
70
|
+
post_install_message:
|
71
|
+
rdoc_options: []
|
72
|
+
require_paths:
|
73
|
+
- lib
|
74
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
requirements: []
|
85
|
+
rubyforge_project:
|
86
|
+
rubygems_version: 2.4.8
|
87
|
+
signing_key:
|
88
|
+
specification_version: 4
|
89
|
+
summary: Business intelligence based on elasticsearch queries
|
90
|
+
test_files:
|
91
|
+
- spec/spec_helper.rb
|