daengine 0.0.9.alpha → 0.0.10.alpha

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,64 @@
1
+ daengine - Digital Asset File parsing and search for OFI
2
+ ========================================================
3
+
4
+ daengine is a rails engine plugin gem that provides access to digital assets, aka
5
+ SSC documents/pdfs such as fund documents from the rails applications. It also
6
+ includes the parser code that reads digital-asset metadata produced by the
7
+ Teamsite legacy CMS and ingests it into a MongoDB instance for use by the client
8
+ API.
9
+
10
+ Installation
11
+ -----------------------
12
+
13
+ To install the gem for use as a server process
14
+
15
+ $ gem install daengine
16
+
17
+ To install within a rails app as an engine (for client API use)
18
+
19
+ # Use the digital-asset api
20
+ gem "daengine"
21
+
22
+ daengine Server Process
23
+ ------------------------
24
+
25
+ The server process of daengine is packaged as an executable inside the gem called
26
+ `process_assets`. You execute the server portion of the gem on a single-instance
27
+ where the Teamsite tuple .xml files are accessible and you must provide a configuration
28
+ .yml file to the executable that specifies the location of the tuple files and the
29
+ MongoDB connection settings ala...
30
+
31
+ $ cat config_prod.yml
32
+ hosts: [[prod-db1,22785], [prod-db3,22785]]
33
+ database: the_database_where_you_want_stuff_to_go
34
+ assets_path: /tmp/some/teamsite/tuple/file/dir/
35
+
36
+ You then execute the server process as so:
37
+
38
+ $ process_assets config_prod.yml
39
+
40
+
41
+
42
+ daengine Client API
43
+ ----------------------
44
+
45
+ The data produced by the daengine server process can be consumed by any rails app
46
+ that includes the daengine gem and has an existing Mongoid connection to the MongoDB
47
+ database that the producer side writes to. Client access is either directly thru
48
+ the *DigitalAssets* model class, or via the engine-provided REST API
49
+ ie *http://localhost:3000/digital_assets.json*
50
+
51
+ Querying for Digital Assets
52
+ ----------------------------
53
+
54
+ Querying assets via the Model Class...
55
+
56
+ DigitalAsset.guid_is('/asdfasdflasdfalasdfasdfasdf.asfdasdf.foo')
57
+ DigitalAsset.path_is('/digitalAssets/some-crazy-guid.pdf')
58
+ DigitalAsset.sami_is('FOOBAR.001')
59
+
60
+ Query via the REST API...
61
+
62
+ get 'http://localhost:3000/digital_assets/search?sami=FOOBAR.001'
63
+ get 'http://localhost:3000/digital_assets/search?funds=12345'
64
+
data/lib/daengine.rb CHANGED
@@ -12,8 +12,9 @@ module Daengine
12
12
 
13
13
  @mongoid_config = {
14
14
  'database' => 'ssc_assets', # mongoid database name
15
- 'hosts' => '[foo:27017]', # mongoid server
16
- # 'port' => 27017 # mongodb server port
15
+ 'host' => nil, # mongoid server
16
+ 'port' => nil, # mongodb server port
17
+ 'hosts' => nil
17
18
  }
18
19
 
19
20
  @valid_mongoid_keys = @mongoid_config.keys
@@ -1,3 +1,3 @@
1
1
  module Daengine
2
- VERSION = "0.0.9.alpha"
2
+ VERSION = "0.0.10.alpha"
3
3
  end
metadata CHANGED
@@ -1,63 +1,64 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daengine
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 0.0.9.alpha
4
+ prerelease: 7
5
+ version: 0.0.10.alpha
6
6
  platform: ruby
7
7
  authors:
8
8
  - sbhatia
9
+ - ! '@john_s_in_co'
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2012-06-19 00:00:00.000000000Z
13
+ date: 2012-06-20 00:00:00.000000000Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails
16
- version_requirements: &2056 !ruby/object:Gem::Requirement
17
+ version_requirements: &2058 !ruby/object:Gem::Requirement
17
18
  requirements:
18
19
  - - ~>
19
20
  - !ruby/object:Gem::Version
20
21
  version: 3.2.3
21
22
  none: false
22
- requirement: *2056
23
+ requirement: *2058
23
24
  prerelease: false
24
25
  type: :runtime
25
26
  - !ruby/object:Gem::Dependency
26
27
  name: mongoid
27
- version_requirements: &2074 !ruby/object:Gem::Requirement
28
+ version_requirements: &2076 !ruby/object:Gem::Requirement
28
29
  requirements:
29
30
  - - ! '>='
30
31
  - !ruby/object:Gem::Version
31
32
  version: '0'
32
33
  none: false
33
- requirement: *2074
34
+ requirement: *2076
34
35
  prerelease: false
35
36
  type: :runtime
36
37
  - !ruby/object:Gem::Dependency
37
38
  name: factory_girl
38
- version_requirements: &2090 !ruby/object:Gem::Requirement
39
+ version_requirements: &2092 !ruby/object:Gem::Requirement
39
40
  requirements:
40
41
  - - ! '>='
41
42
  - !ruby/object:Gem::Version
42
43
  version: '0'
43
44
  none: false
44
- requirement: *2090
45
+ requirement: *2092
45
46
  prerelease: false
46
47
  type: :development
47
48
  - !ruby/object:Gem::Dependency
48
49
  name: rspec-rails
49
- version_requirements: &2108 !ruby/object:Gem::Requirement
50
+ version_requirements: &2110 !ruby/object:Gem::Requirement
50
51
  requirements:
51
52
  - - ! '>='
52
53
  - !ruby/object:Gem::Version
53
54
  version: '0'
54
55
  none: false
55
- requirement: *2108
56
+ requirement: *2110
56
57
  prerelease: false
57
58
  type: :development
58
59
  description: Daengine handles digital asset processing.
59
60
  email:
60
- - samcojava@yahoo.com
61
+ - ML-WebDevelopers@oppenheimerfunds.com
61
62
  executables:
62
63
  - process_assets
63
64
  extensions: []
@@ -83,7 +84,7 @@ files:
83
84
  - lib/tasks/daengine_tasks.rake
84
85
  - MIT-LICENSE
85
86
  - Rakefile
86
- - README.rdoc
87
+ - README.md
87
88
  - Gemfile
88
89
  - spec/factories.rb
89
90
  - spec/spec_helper.rb
@@ -123,7 +124,7 @@ files:
123
124
  - spec/lib/teamsite_metadata_parser_spec.rb
124
125
  - spec/models/digital_asset_spec.rb
125
126
  - bin/process_assets
126
- homepage: http://www.globalizeyourthinking.com
127
+ homepage: https://github.com/johnsinco/daengine
127
128
  licenses: []
128
129
  post_install_message:
129
130
  rdoc_options: []
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = Daengine
2
-
3
- This project rocks and uses MIT-LICENSE.